0s autopkgtest [14:46:56]: starting date and time: 2024-11-14 14:46:56+0000 0s autopkgtest [14:46:56]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [14:46:56]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.0wbv7jbx/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --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 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-s390x-24.secgroup --name adt-plucky-s390x-sqlalchemy-i18n-20241114-144656-juju-7f2275-prod-proposed-migration-environment-15-22d368c8-3d62-41bb-ab28-ef65c53dd6ea --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-s390x -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_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'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 106s autopkgtest [14:48:42]: testbed dpkg architecture: s390x 106s autopkgtest [14:48:42]: testbed apt version: 2.9.8 106s autopkgtest [14:48:42]: @@@@@@@@@@@@@@@@@@@@ test bed setup 107s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 107s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 107s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [966 kB] 107s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [105 kB] 107s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 107s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [116 kB] 107s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [670 kB] 107s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [5540 B] 107s Fetched 1958 kB in 1s (2420 kB/s) 107s Reading package lists... 109s Reading package lists... 110s Building dependency tree... 110s Reading state information... 110s Calculating upgrade... 110s The following packages will be upgraded: 110s pastebinit python3-systemd 110s 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 110s Need to get 61.9 kB of archives. 110s After this operation, 122 kB of additional disk space will be used. 110s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x pastebinit all 1.7.1-1 [14.9 kB] 110s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x python3-systemd s390x 235-1build5 [46.9 kB] 110s Fetched 61.9 kB in 0s (181 kB/s) 110s (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 ... 55511 files and directories currently installed.) 110s Preparing to unpack .../pastebinit_1.7.1-1_all.deb ... 110s Unpacking pastebinit (1.7.1-1) over (1.7.0-1) ... 110s Preparing to unpack .../python3-systemd_235-1build5_s390x.deb ... 111s Unpacking python3-systemd (235-1build5) over (235-1build4) ... 111s Setting up pastebinit (1.7.1-1) ... 111s Setting up python3-systemd (235-1build5) ... 111s Processing triggers for man-db (2.12.1-3) ... 111s Reading package lists... 111s Building dependency tree... 111s Reading state information... 111s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 112s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 112s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 112s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 112s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 113s Reading package lists... 113s Reading package lists... 113s Building dependency tree... 113s Reading state information... 113s Calculating upgrade... 113s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 113s Reading package lists... 113s Building dependency tree... 113s Reading state information... 113s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 116s autopkgtest [14:48:52]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 116s autopkgtest [14:48:52]: @@@@@@@@@@@@@@@@@@@@ apt-source sqlalchemy-i18n 118s Get:1 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (dsc) [2462 B] 118s Get:2 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (tar) [28.2 kB] 118s Get:3 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (diff) [4212 B] 118s gpgv: Signature made Wed Jan 18 23:54:36 2023 UTC 118s gpgv: using RSA key 439884E6862A429C290DF63B033C4CA276024834 118s gpgv: issuer "athos.ribeiro@canonical.com" 118s gpgv: Can't check signature: No public key 118s dpkg-source: warning: cannot verify inline signature for ./sqlalchemy-i18n_1.1.0-1build1.dsc: no acceptable signature found 118s autopkgtest [14:48:54]: testing package sqlalchemy-i18n version 1.1.0-1build1 118s autopkgtest [14:48:54]: build not needed 118s autopkgtest [14:48:54]: test setup-db-and-run-tests.py: preparing testbed 121s Reading package lists... 121s Building dependency tree... 121s Reading state information... 121s Starting pkgProblemResolver with broken count: 0 121s Starting 2 pkgProblemResolver with broken count: 0 121s Done 121s The following additional packages will be installed: 121s libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl libpq5 libxslt1.1 121s postgresql postgresql-16 postgresql-client-16 postgresql-client-common 121s postgresql-common python3-arrow python3-dateutil python3-greenlet 121s python3-iniconfig python3-packaging python3-pluggy python3-psycopg2 121s python3-pytest python3-six python3-sqlalchemy python3-sqlalchemy-i18n 121s python3-sqlalchemy-utils ssl-cert 121s Suggested packages: 121s postgresql-doc postgresql-doc-16 python-arrow-doc python-greenlet-dev 121s python-greenlet-doc python-psycopg2-doc python-sqlalchemy-doc 121s python3-asyncpg python3-pg8000 python3-psycopg2cffi python3-aiosqlite 121s python3-mariadb-connector python3-mysqldb python3-mysql.connector 121s python3-pyodbc python3-pymssql python3-cx-oracle python3-oracledb 121s python-sqlalchemy-utils-doc python3-infinity python3-intervals 121s Recommended packages: 121s javascript-common libjson-xs-perl python3-sqlalchemy-ext 122s The following NEW packages will be installed: 122s autopkgtest-satdep libjs-jquery libjs-sphinxdoc libjs-underscore 122s libjson-perl libpq5 libxslt1.1 postgresql postgresql-16 postgresql-client-16 122s postgresql-client-common postgresql-common python3-arrow python3-dateutil 122s python3-greenlet python3-iniconfig python3-packaging python3-pluggy 122s python3-psycopg2 python3-pytest python3-six python3-sqlalchemy 122s python3-sqlalchemy-i18n python3-sqlalchemy-utils ssl-cert 122s 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. 122s Need to get 21.0 MB/21.0 MB of archives. 122s After this operation, 66.8 MB of additional disk space will be used. 122s Get:1 /tmp/autopkgtest.XR4E9N/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [748 B] 122s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-perl all 4.10000-1 [81.9 kB] 122s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x postgresql-client-common all 262 [36.7 kB] 122s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x ssl-cert all 1.1.2ubuntu2 [18.0 kB] 122s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x postgresql-common all 262 [162 kB] 122s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 122s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 122s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x libjs-sphinxdoc all 7.4.7-4 [158 kB] 122s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libpq5 s390x 17.0-1 [252 kB] 122s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x libxslt1.1 s390x 1.1.39-0exp1ubuntu1 [169 kB] 122s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x postgresql-client-16 s390x 16.4-3 [1294 kB] 122s Get:12 http://ftpmaster.internal/ubuntu plucky/main s390x postgresql-16 s390x 16.4-3 [16.3 MB] 123s Get:13 http://ftpmaster.internal/ubuntu plucky/main s390x postgresql all 16+262 [11.8 kB] 123s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x python3-six all 1.16.0-7 [13.1 kB] 123s Get:15 http://ftpmaster.internal/ubuntu plucky/main s390x python3-dateutil all 2.9.0-2 [80.3 kB] 123s Get:16 http://ftpmaster.internal/ubuntu plucky/main s390x python3-arrow all 1.3.0-1.1ubuntu1 [56.1 kB] 123s Get:17 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 123s Get:18 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.1-1 [41.4 kB] 123s Get:19 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 123s Get:20 http://ftpmaster.internal/ubuntu plucky/main s390x python3-psycopg2 s390x 2.9.9-2 [132 kB] 123s Get:21 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.3-1 [251 kB] 123s Get:22 http://ftpmaster.internal/ubuntu plucky/main s390x python3-greenlet s390x 3.0.3-0ubuntu6 [156 kB] 123s Get:23 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-sqlalchemy all 2.0.32+ds1-1ubuntu3 [1206 kB] 123s Get:24 http://ftpmaster.internal/ubuntu plucky/main s390x python3-sqlalchemy-utils all 0.41.1-0ubuntu1 [59.4 kB] 123s Get:25 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-sqlalchemy-i18n all 1.1.0-1build1 [26.7 kB] 123s Preconfiguring packages ... 123s Fetched 21.0 MB in 1s (16.9 MB/s) 123s Selecting previously unselected package libjson-perl. 123s (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 ... 55516 files and directories currently installed.) 123s Preparing to unpack .../00-libjson-perl_4.10000-1_all.deb ... 123s Unpacking libjson-perl (4.10000-1) ... 123s Selecting previously unselected package postgresql-client-common. 123s Preparing to unpack .../01-postgresql-client-common_262_all.deb ... 123s Unpacking postgresql-client-common (262) ... 123s Selecting previously unselected package ssl-cert. 123s Preparing to unpack .../02-ssl-cert_1.1.2ubuntu2_all.deb ... 123s Unpacking ssl-cert (1.1.2ubuntu2) ... 123s Selecting previously unselected package postgresql-common. 123s Preparing to unpack .../03-postgresql-common_262_all.deb ... 123s Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common' 123s Unpacking postgresql-common (262) ... 123s Selecting previously unselected package libjs-jquery. 123s Preparing to unpack .../04-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 123s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 123s Selecting previously unselected package libjs-underscore. 123s Preparing to unpack .../05-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 123s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 123s Selecting previously unselected package libjs-sphinxdoc. 123s Preparing to unpack .../06-libjs-sphinxdoc_7.4.7-4_all.deb ... 123s Unpacking libjs-sphinxdoc (7.4.7-4) ... 123s Selecting previously unselected package libpq5:s390x. 123s Preparing to unpack .../07-libpq5_17.0-1_s390x.deb ... 123s Unpacking libpq5:s390x (17.0-1) ... 123s Selecting previously unselected package libxslt1.1:s390x. 123s Preparing to unpack .../08-libxslt1.1_1.1.39-0exp1ubuntu1_s390x.deb ... 123s Unpacking libxslt1.1:s390x (1.1.39-0exp1ubuntu1) ... 123s Selecting previously unselected package postgresql-client-16. 123s Preparing to unpack .../09-postgresql-client-16_16.4-3_s390x.deb ... 123s Unpacking postgresql-client-16 (16.4-3) ... 123s Selecting previously unselected package postgresql-16. 123s Preparing to unpack .../10-postgresql-16_16.4-3_s390x.deb ... 123s Unpacking postgresql-16 (16.4-3) ... 123s Selecting previously unselected package postgresql. 123s Preparing to unpack .../11-postgresql_16+262_all.deb ... 123s Unpacking postgresql (16+262) ... 123s Selecting previously unselected package python3-six. 123s Preparing to unpack .../12-python3-six_1.16.0-7_all.deb ... 123s Unpacking python3-six (1.16.0-7) ... 123s Selecting previously unselected package python3-dateutil. 123s Preparing to unpack .../13-python3-dateutil_2.9.0-2_all.deb ... 123s Unpacking python3-dateutil (2.9.0-2) ... 123s Selecting previously unselected package python3-arrow. 123s Preparing to unpack .../14-python3-arrow_1.3.0-1.1ubuntu1_all.deb ... 123s Unpacking python3-arrow (1.3.0-1.1ubuntu1) ... 123s Selecting previously unselected package python3-iniconfig. 123s Preparing to unpack .../15-python3-iniconfig_1.1.1-2_all.deb ... 123s Unpacking python3-iniconfig (1.1.1-2) ... 123s Selecting previously unselected package python3-packaging. 124s Preparing to unpack .../16-python3-packaging_24.1-1_all.deb ... 124s Unpacking python3-packaging (24.1-1) ... 124s Selecting previously unselected package python3-pluggy. 124s Preparing to unpack .../17-python3-pluggy_1.5.0-1_all.deb ... 124s Unpacking python3-pluggy (1.5.0-1) ... 124s Selecting previously unselected package python3-psycopg2. 124s Preparing to unpack .../18-python3-psycopg2_2.9.9-2_s390x.deb ... 124s Unpacking python3-psycopg2 (2.9.9-2) ... 124s Selecting previously unselected package python3-pytest. 124s Preparing to unpack .../19-python3-pytest_8.3.3-1_all.deb ... 124s Unpacking python3-pytest (8.3.3-1) ... 124s Selecting previously unselected package python3-greenlet. 124s Preparing to unpack .../20-python3-greenlet_3.0.3-0ubuntu6_s390x.deb ... 124s Unpacking python3-greenlet (3.0.3-0ubuntu6) ... 124s Selecting previously unselected package python3-sqlalchemy. 124s Preparing to unpack .../21-python3-sqlalchemy_2.0.32+ds1-1ubuntu3_all.deb ... 124s Unpacking python3-sqlalchemy (2.0.32+ds1-1ubuntu3) ... 124s Selecting previously unselected package python3-sqlalchemy-utils. 124s Preparing to unpack .../22-python3-sqlalchemy-utils_0.41.1-0ubuntu1_all.deb ... 124s Unpacking python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 124s Selecting previously unselected package python3-sqlalchemy-i18n. 124s Preparing to unpack .../23-python3-sqlalchemy-i18n_1.1.0-1build1_all.deb ... 124s Unpacking python3-sqlalchemy-i18n (1.1.0-1build1) ... 124s Selecting previously unselected package autopkgtest-satdep. 124s Preparing to unpack .../24-1-autopkgtest-satdep.deb ... 124s Unpacking autopkgtest-satdep (0) ... 124s Setting up postgresql-client-common (262) ... 124s Setting up python3-iniconfig (1.1.1-2) ... 124s Setting up libpq5:s390x (17.0-1) ... 124s Setting up python3-six (1.16.0-7) ... 124s Setting up python3-packaging (24.1-1) ... 124s Setting up ssl-cert (1.1.2ubuntu2) ... 124s Created symlink '/etc/systemd/system/multi-user.target.wants/ssl-cert.service' → '/usr/lib/systemd/system/ssl-cert.service'. 124s Setting up python3-greenlet (3.0.3-0ubuntu6) ... 125s Setting up python3-psycopg2 (2.9.9-2) ... 125s Setting up python3-pluggy (1.5.0-1) ... 125s Setting up libjson-perl (4.10000-1) ... 125s Setting up libxslt1.1:s390x (1.1.39-0exp1ubuntu1) ... 125s Setting up python3-dateutil (2.9.0-2) ... 125s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 125s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 125s Setting up python3-arrow (1.3.0-1.1ubuntu1) ... 125s Setting up python3-pytest (8.3.3-1) ... 125s Setting up postgresql-client-16 (16.4-3) ... 126s 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 126s Setting up python3-sqlalchemy (2.0.32+ds1-1ubuntu3) ... 127s Setting up postgresql-common (262) ... 127s 127s Creating config file /etc/postgresql-common/createcluster.conf with new version 127s Building PostgreSQL dictionaries from installed myspell/hunspell packages... 127s Removing obsolete dictionary files: 128s Created symlink '/etc/systemd/system/multi-user.target.wants/postgresql.service' → '/usr/lib/systemd/system/postgresql.service'. 128s Setting up libjs-sphinxdoc (7.4.7-4) ... 128s Setting up python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 128s Setting up python3-sqlalchemy-i18n (1.1.0-1build1) ... 128s Setting up postgresql-16 (16.4-3) ... 128s Creating new PostgreSQL cluster 16/main ... 128s /usr/lib/postgresql/16/bin/initdb -D /var/lib/postgresql/16/main --auth-local peer --auth-host scram-sha-256 --no-instructions 128s The files belonging to this database system will be owned by user "postgres". 128s This user must also own the server process. 128s 128s The database cluster will be initialized with locale "C.UTF-8". 128s The default database encoding has accordingly been set to "UTF8". 128s The default text search configuration will be set to "english". 128s 128s Data page checksums are disabled. 128s 128s fixing permissions on existing directory /var/lib/postgresql/16/main ... ok 128s creating subdirectories ... ok 128s selecting dynamic shared memory implementation ... posix 128s selecting default max_connections ... 100 128s selecting default shared_buffers ... 128MB 128s selecting default time zone ... Etc/UTC 128s creating configuration files ... ok 129s running bootstrap script ... ok 129s performing post-bootstrap initialization ... ok 129s syncing data to disk ... ok 132s Setting up postgresql (16+262) ... 132s Setting up autopkgtest-satdep (0) ... 132s Processing triggers for man-db (2.12.1-3) ... 133s Processing triggers for libc-bin (2.40-1ubuntu3) ... 134s (Reading database ... 58300 files and directories currently installed.) 134s Removing autopkgtest-satdep (0) ... 135s autopkgtest [14:49:11]: test setup-db-and-run-tests.py: [----------------------- 135s The files belonging to this database system will be owned by user "ubuntu". 135s This user must also own the server process. 135s 135s The database cluster will be initialized with this locale configuration: 135s provider: libc 135s LC_COLLATE: C.UTF-8 135s LC_CTYPE: C.UTF-8 135s LC_MESSAGES: C 135s LC_MONETARY: C.UTF-8 135s LC_NUMERIC: C.UTF-8 135s LC_TIME: C.UTF-8 135s The default database encoding has accordingly been set to "UTF8". 135s The default text search configuration will be set to "english". 135s 135s Data page checksums are disabled. 135s 135s creating directory /tmp/tmpig05q88j/data ... ok 135s creating subdirectories ... ok 135s selecting dynamic shared memory implementation ... posix 135s selecting default max_connections ... 100 135s selecting default shared_buffers ... 128MB 135s selecting default time zone ... Etc/UTC 135s creating configuration files ... ok 135s running bootstrap script ... ok 136s performing post-bootstrap initialization ... ok 136s syncing data to disk ... ok 136s 136s Success. You can now start the database server using: 136s 136s /usr/lib/postgresql/16/bin/pg_ctl -D /tmp/tmpig05q88j/data -l logfile start 136s 136s 2024-11-14 14:49:12.215 UTC [4360] LOG: starting PostgreSQL 16.4 (Ubuntu 16.4-3) on s390x-ibm-linux-gnu, compiled by gcc (Ubuntu 14.2.0-7ubuntu1) 14.2.0, 64-bit 136s 2024-11-14 14:49:12.215 UTC [4360] LOG: listening on IPv6 address "::1", port 48321 136s 2024-11-14 14:49:12.215 UTC [4360] LOG: listening on IPv4 address "127.0.0.1", port 48321 136s 2024-11-14 14:49:12.215 UTC [4360] LOG: listening on Unix socket "/tmp/tmpig05q88j/tmp/.s.PGSQL.48321" 136s 2024-11-14 14:49:12.216 UTC [4363] LOG: database system was shut down at 2024-11-14 14:49:12 UTC 136s 2024-11-14 14:49:12.219 UTC [4360] LOG: database system is ready to accept connections 136s running initdb 136s starting server 136s ============================= test session starts ============================== 136s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 136s rootdir: /tmp/autopkgtest.XR4E9N/build.1Vh/src 136s plugins: typeguard-4.4.1 136s collected 119 items 136s 137s tests/test_common_base_class.py EE [ 1%] 137s tests/test_comparator.py EEEE [ 5%] 137s tests/test_composite_primary_key.py EE [ 6%] 138s tests/test_configuration.py EE [ 8%] 139s tests/test_current_translation_property.py EEEEEE [ 13%] 139s tests/test_current_translation_property_with_locale.py EE [ 15%] 139s tests/test_custom_base_class.py E [ 15%] 139s tests/test_expressions.py . [ 16%] 139s tests/test_fallback_locale_as_callable.py EEEE [ 20%] 140s tests/test_fallback_locale_without_class_default.py EEEE [ 23%] 141s tests/test_fallback_translation.py EEEEEE [ 28%] 142s tests/test_find_translations.py EEEE [ 31%] 142s tests/test_hybrid_property_as_dynamic_source_locale.py EE [ 33%] 142s tests/test_hybrid_property_exclusion.py FE [ 35%] 143s tests/test_join_expressions.py EEEEEEEE [ 42%] 144s tests/test_joined_loading.py EEEEEEEEEE [ 50%] 146s tests/test_joined_table_inheritance.py EEEEEEEEEEEEEEEE [ 63%] 146s tests/test_property_collision.py . [ 64%] 146s tests/test_relationships.py EE [ 66%] 149s tests/test_translatable.py EEEEEEEEEEEEEEEE [ 79%] 149s tests/test_translation_auto_creation.py EE [ 81%] 149s tests/test_translation_auto_creation_with_non_nullables.py EE [ 83%] 150s tests/test_translation_mapping.py EEEE2024-11-14 14:49:26.746 UTC [4470] FATAL: sorry, too many clients already 151s E2024-11-14 14:49:27.087 UTC [4471] FATAL: sorry, too many clients already 151s E2024-11-14 14:49:27.373 UTC [4472] FATAL: sorry, too many clients already 151s E2024-11-14 14:49:27.663 UTC [4473] FATAL: sorry, too many clients already 151s E2024-11-14 14:49:27.927 UTC [4474] FATAL: sorry, too many clients already 152s E2024-11-14 14:49:28.188 UTC [4475] FATAL: sorry, too many clients already 152s E2024-11-14 14:49:28.455 UTC [4476] FATAL: sorry, too many clients already 152s E2024-11-14 14:49:28.752 UTC [4477] FATAL: sorry, too many clients already 153s E2024-11-14 14:49:29.030 UTC [4478] FATAL: sorry, too many clients already 153s E2024-11-14 14:49:29.330 UTC [4479] FATAL: sorry, too many clients already 153s E2024-11-14 14:49:29.585 UTC [4480] FATAL: sorry, too many clients already 153s E2024-11-14 14:49:29.896 UTC [4481] FATAL: sorry, too many clients already 154s E2024-11-14 14:49:30.153 UTC [4482] FATAL: sorry, too many clients already 154s E2024-11-14 14:49:30.426 UTC [4483] FATAL: sorry, too many clients already 154s E2024-11-14 14:49:30.708 UTC [4484] FATAL: sorry, too many clients already 155s E2024-11-14 14:49:30.985 UTC [4485] FATAL: sorry, too many clients already 155s E [100%] 155s 155s ==================================== ERRORS ==================================== 155s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'TextItem' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestClassic.test_translatable_dict_copied_to_each_child_class _ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.textitems) 155s 155s tests/test_common_base_class.py:105: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('textitems', MetaData(), Column('id', Integer(), table=, primary_key=True, nullable=False), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestDeclarative.test_attribute_accessors __________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ____________ ERROR at setup of TestClassic.test_attribute_accessors ____________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _____________ ERROR at setup of TestDeclarative.test_relationships _____________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _______________ ERROR at setup of TestClassic.test_relationships _______________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), C...y_key=True, nullable=False), Column('id2', Integer(), table=
, primary_key=True, nullable=False), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_foreign_key_args _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_relationships_args _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestDeclarative.test_as_object_property ___________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ____________ ERROR at setup of TestClassic.test_as_object_property _____________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __________________ ERROR at setup of TestClassic.test_setter ___________________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ___ ERROR at setup of TestDeclarative.test_converts_locale_object_to_unicode ___ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _____ ERROR at setup of TestClassic.test_converts_locale_object_to_unicode _____ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('arti...able=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _ ERROR at setup of TestDeclarative.test_as_object_property_with_force_locale __ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ___ ERROR at setup of TestClassic.test_as_object_property_with_force_locale ____ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __________________ ERROR at setup of TestClassic.test_setter ___________________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _________ ERROR at setup of TestDeclarative.test_with_full_confidence __________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ________ ERROR at setup of TestDeclarative.test_with_varying_confidence ________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ___________ ERROR at setup of TestClassic.test_with_full_confidence ____________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __________ ERROR at setup of TestClassic.test_with_varying_confidence __________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > DeclarativeTestCase.setup_method(self, method) 155s 155s tests/test_hybrid_property_as_dynamic_source_locale.py:25: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:57: in setup_method 155s sa.orm.configure_mappers() 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > ClassicTestCase.setup_method(self, method) 155s 155s tests/test_hybrid_property_as_dynamic_source_locale.py:61: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:140: in setup_method 155s self.create_mappers() 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('arti...
), Column('_locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ____ ERROR at setup of TestClassic.test_does_not_generate_hybrid_properties ____ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(...e=
, default=ScalarElementColumnDefault('en')), Column('word_count', Integer(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ___ ERROR at setup of TestDeclarative.test_current_translation_as_expression ___ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _________ ERROR at setup of TestDeclarative.test_order_by_translation __________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _____ ERROR at setup of TestDeclarative.test_fallback_locale_as_expression _____ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _______________ ERROR at setup of TestDeclarative.test_querying ________________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _____ ERROR at setup of TestClassic.test_current_translation_as_expression _____ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ___________ ERROR at setup of TestClassic.test_order_by_translation ____________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _______ ERROR at setup of TestClassic.test_fallback_locale_as_expression _______ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _________________ ERROR at setup of TestClassic.test_querying __________________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > DeclarativeTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:59: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:57: in setup_method 155s sa.orm.configure_mappers() 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestDeclarative.test_contains_eager_for_current_translation _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > DeclarativeTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:59: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:57: in setup_method 155s sa.orm.configure_mappers() 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ___ ERROR at setup of TestDeclarative.test_joinedload_for_single_translation ___ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > DeclarativeTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:59: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:57: in setup_method 155s sa.orm.configure_mappers() 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _____ ERROR at setup of TestDeclarative.test_joinedload_for_attr_accessor ______ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > DeclarativeTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:59: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:57: in setup_method 155s sa.orm.configure_mappers() 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ____ ERROR at setup of TestDeclarative.test_joinedload_for_all_translations ____ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > DeclarativeTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:59: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:57: in setup_method 155s sa.orm.configure_mappers() 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > ClassicTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:71: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:140: in setup_method 155s self.create_mappers() 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __ ERROR at setup of TestClassic.test_contains_eager_for_current_translation ___ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > ClassicTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:71: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:140: in setup_method 155s self.create_mappers() 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _____ ERROR at setup of TestClassic.test_joinedload_for_single_translation _____ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > ClassicTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:71: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:140: in setup_method 155s self.create_mappers() 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _______ ERROR at setup of TestClassic.test_joinedload_for_attr_accessor ________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > ClassicTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:71: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:140: in setup_method 155s self.create_mappers() 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ______ ERROR at setup of TestClassic.test_joinedload_for_all_translations ______ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > ClassicTestCase.setup_method(self, method) 155s 155s tests/test_joined_loading.py:71: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:140: in setup_method 155s self.create_mappers() 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ___ ERROR at setup of TestDeclarative.test_auto_creates_current_translation ____ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _______ ERROR at setup of TestDeclarative.test_inherits_child_properties _______ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ______________ ERROR at setup of TestDeclarative.test_table_name _______________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _________ ERROR at setup of TestDeclarative.test_inherits_parent_table _________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.text_item, 155s polymorphic_on=self.text_item.c.discriminator) 155s 155s tests/test_joined_table_inheritance.py:155: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _____ ERROR at setup of TestClassic.test_auto_creates_current_translation ______ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.text_item, 155s polymorphic_on=self.text_item.c.discriminator) 155s 155s tests/test_joined_table_inheritance.py:155: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.text_item, 155s polymorphic_on=self.text_item.c.discriminator) 155s 155s tests/test_joined_table_inheritance.py:155: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _________ ERROR at setup of TestClassic.test_inherits_child_properties _________ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.text_item, 155s polymorphic_on=self.text_item.c.discriminator) 155s 155s tests/test_joined_table_inheritance.py:155: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.text_item, 155s polymorphic_on=self.text_item.c.discriminator) 155s 155s tests/test_joined_table_inheritance.py:155: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.text_item, 155s polymorphic_on=self.text_item.c.discriminator) 155s 155s tests/test_joined_table_inheritance.py:155: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ________________ ERROR at setup of TestClassic.test_table_name _________________ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.text_item, 155s polymorphic_on=self.text_item.c.discriminator) 155s 155s tests/test_joined_table_inheritance.py:155: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ___________ ERROR at setup of TestClassic.test_inherits_parent_table ___________ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.TextItem, self.text_item, 155s polymorphic_on=self.text_item.c.discriminator) 155s 155s tests/test_joined_table_inheritance.py:155: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ___________ ERROR at setup of TestDeclarative.test_nullify_relation ____________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Category' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _____________ ERROR at setup of TestClassic.test_nullify_relation ______________ 155s 155s self = 155s 155s def create_mappers(self): 155s > sa.orm.mapper(self.Article, self.article) 155s 155s tests/test_relationships.py:101: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('i...), table=
, primary_key=True, nullable=False), Column('content', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _______ ERROR at setup of TestDeclarative.test_relationship_consistency ________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ____________ ERROR at setup of TestDeclarative.test_commit_session _____________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ________________ ERROR at setup of TestDeclarative.test_delete _________________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestDeclarative.test_appends_locale_column_to_translation_table _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _________ ERROR at setup of TestClassic.test_relationship_consistency __________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ______________ ERROR at setup of TestClassic.test_commit_session _______________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s __________________ ERROR at setup of TestClassic.test_delete ___________________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _ ERROR at setup of TestClassic.test_appends_locale_column_to_translation_table _ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.metadata = sa.MetaData() 155s 155s self.engine = sa.create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s 155s self.create_tables() 155s self.create_models() 155s > self.create_mappers() 155s 155s tests/__init__.py:140: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ___ ERROR at setup of TestDeclarative.test_auto_creates_translation_objects ____ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > DeclarativeTestCase.setup_method(self, method) 155s 155s tests/test_translation_auto_creation.py:21: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:57: in setup_method 155s sa.orm.configure_mappers() 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _____ ERROR at setup of TestClassic.test_auto_creates_translation_objects ______ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > ClassicTestCase.setup_method(self, method) 155s 155s tests/test_translation_auto_creation.py:31: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:140: in setup_method 155s self.create_mappers() 155s tests/__init__.py:213: in create_mappers 155s sa.orm.mapper(self.Article, self.article) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 155s kw = {} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s _ ERROR at setup of TestDeclarative.test_auto_sets_nullables_as_empty_strings __ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'ExtendedArticle' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > DeclarativeTestCase.setup_method(self, method) 155s 155s tests/test_translation_auto_creation_with_non_nullables.py:26: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:57: in setup_method 155s sa.orm.configure_mappers() 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 155s mapper._adapt_inherited_property(key, prop, init) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 155s self._configure_property(key, prop, init=False, setparent=False) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 155s prop.instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 155s attributes.register_descriptor( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 155s descriptor = InstrumentedAttribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 155s self.dispatch._update(base[key].dispatch) 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s ___ ERROR at setup of TestClassic.test_auto_sets_nullables_as_empty_strings ____ 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s > ClassicTestCase.setup_method(self, method) 155s 155s tests/test_translation_auto_creation_with_non_nullables.py:75: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s tests/__init__.py:140: in setup_method 155s self.create_mappers() 155s tests/test_translation_auto_creation_with_non_nullables.py:135: in create_mappers 155s sa.orm.mapper(self.Article, self.article, 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s arg = (.Article'>, Table('...ription', UnicodeText(), table=
), Column('discriminator', Unicode(length=255), table=
), schema=None)) 155s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=
)} 155s 155s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 155s """Placeholder for the now-removed ``mapper()`` function. 155s 155s Classical mappings should be performed using the 155s :meth:`_orm.registry.map_imperatively` method. 155s 155s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 155s of using the ``mapper()`` function as a target for ORM event listeners, 155s which failed to be marked as deprecated in the 1.4 series. 155s 155s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 155s class as the target. 155s 155s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 155s symbol remains temporarily as a placeholder for the event listening 155s use case. 155s 155s """ 155s > raise InvalidRequestError( 155s "The 'sqlalchemy.orm.mapper()' function is removed as of " 155s "SQLAlchemy 2.0. Use the " 155s "'sqlalchemy.orm.registry.map_imperatively()` " 155s "method of the ``sqlalchemy.orm.registry`` class to perform " 155s "classical mapping." 155s ) 155s 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. 155s 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 155s ____________ ERROR at setup of TestDeclarative.test_proxy_contains _____________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestDeclarative.test_translation_mapping_attribute_getter __ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 155s 155s During handling of the above exception, another exception occurred: 155s 155s self = 155s method = > 155s 155s def setup_method(self, method): 155s self.engine = create_engine(self.engine_uri) 155s # self.engine.echo = True 155s self.connection = self.engine.connect() 155s self.connection.query_count = 0 155s self.Model = declarative_base() 155s 155s self.create_models() 155s 155s if self.configure_mappers: 155s > sa.orm.configure_mappers() 155s 155s tests/__init__.py:57: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 155s _configure_registries(_all_registries(), cascade=True) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 155s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 155s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 155s fn(*args, **kw) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 155s fn(*arg, **kw) 155s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 155s RelationshipBuilder(self, cls)() 155s sqlalchemy_i18n/builders.py:228: in __call__ 155s self.assign_translations() 155s sqlalchemy_i18n/builders.py:186: in assign_translations 155s mapper.add_property('_translations', sa.orm.relationship( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 155s prop = self._configure_property( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 155s prop.post_instrument_class(self) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 155s self.strategy.init_class_attribute(mapper) 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 155s _register_attribute( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 155s desc = attributes.register_attribute_impl( 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 155s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 155s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 155s if hasattr(obj, "_slots_dispatch"): 155s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 155s return getattr(self.comparator, key) 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s return getattr(class_, '_translation_%s' % locale) 155s except AttributeError: 155s > raise UnknownLocaleError(locale, class_) 155s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 155s 155s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 155s __________ ERROR at setup of TestDeclarative.test_proxy_not_contains ___________ 155s 155s self = 155s locale = '_slots_dispatch' 155s 155s def __getattr__(self, locale): 155s class_ = self._parentmapper.class_ 155s try: 155s > return getattr(class_, '_translation_%s' % locale) 155s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 155s 155s sqlalchemy_i18n/comparators.py:13: AttributeError 156s 156s During handling of the above exception, another exception occurred: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.engine = create_engine(self.engine_uri) 156s # self.engine.echo = True 156s self.connection = self.engine.connect() 156s self.connection.query_count = 0 156s self.Model = declarative_base() 156s 156s self.create_models() 156s 156s if self.configure_mappers: 156s > sa.orm.configure_mappers() 156s 156s tests/__init__.py:57: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 156s _configure_registries(_all_registries(), cascade=True) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 156s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 156s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 156s fn(*args, **kw) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 156s fn(*arg, **kw) 156s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 156s RelationshipBuilder(self, cls)() 156s sqlalchemy_i18n/builders.py:228: in __call__ 156s self.assign_translations() 156s sqlalchemy_i18n/builders.py:186: in assign_translations 156s mapper.add_property('_translations', sa.orm.relationship( 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 156s prop = self._configure_property( 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 156s prop.post_instrument_class(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 156s self.strategy.init_class_attribute(mapper) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 156s _register_attribute( 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 156s desc = attributes.register_attribute_impl( 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 156s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 156s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 156s if hasattr(obj, "_slots_dispatch"): 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 156s return getattr(self.comparator, key) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s self = 156s locale = '_slots_dispatch' 156s 156s def __getattr__(self, locale): 156s class_ = self._parentmapper.class_ 156s try: 156s return getattr(class_, '_translation_%s' % locale) 156s except AttributeError: 156s > raise UnknownLocaleError(locale, class_) 156s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 156s 156s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 156s _________________ ERROR at setup of TestDeclarative.test_items _________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.engine = create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:50: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s _______________ ERROR at setup of TestDeclarative.test_iteritems _______________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.engine = create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:50: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s _______________ ERROR at setup of TestDeclarative.test_set_item ________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.engine = create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:50: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s _________________ ERROR at setup of TestDeclarative.test_repr __________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.engine = create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:50: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s _________________ ERROR at setup of TestDeclarative.test_iter __________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.engine = create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:50: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s ________________ ERROR at setup of TestDeclarative.test_values _________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.engine = create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:50: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s ______________ ERROR at setup of TestClassic.test_proxy_contains _______________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s ___ ERROR at setup of TestClassic.test_translation_mapping_attribute_getter ____ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s ____________ ERROR at setup of TestClassic.test_proxy_not_contains _____________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s ___________________ ERROR at setup of TestClassic.test_items ___________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s _________________ ERROR at setup of TestClassic.test_iteritems _________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s _________________ ERROR at setup of TestClassic.test_set_item __________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s ___________________ ERROR at setup of TestClassic.test_repr ____________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s ___________________ ERROR at setup of TestClassic.test_iter ____________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s __________________ ERROR at setup of TestClassic.test_values ___________________ 156s 156s self = 156s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 156s connection = None, _has_events = None, _allow_revalidate = True 156s _allow_autobegin = True 156s 156s def __init__( 156s self, 156s engine: Engine, 156s connection: Optional[PoolProxiedConnection] = None, 156s _has_events: Optional[bool] = None, 156s _allow_revalidate: bool = True, 156s _allow_autobegin: bool = True, 156s ): 156s """Construct a new Connection.""" 156s self.engine = engine 156s self.dialect = dialect = engine.dialect 156s 156s if connection is None: 156s try: 156s > self._dbapi_connection = engine.raw_connection() 156s 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s 156s The above exception was the direct cause of the following exception: 156s 156s self = 156s method = > 156s 156s def setup_method(self, method): 156s self.metadata = sa.MetaData() 156s 156s self.engine = sa.create_engine(self.engine_uri) 156s # self.engine.echo = True 156s > self.connection = self.engine.connect() 156s 156s tests/__init__.py:135: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 156s return self._connection_cls(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 156s Connection._handle_dbapi_exception_noconnection( 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 156s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 156s self._dbapi_connection = engine.raw_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 156s return self.pool.connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 156s return _ConnectionFairy._checkout(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 156s fairy = _ConnectionRecord.checkout(pool) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 156s rec = pool._do_get() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 156s return self._create_connection() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 156s return _ConnectionRecord(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 156s self.__connect() 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 156s with util.safe_reraise(): 156s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 156s raise exc_value.with_traceback(exc_tb) 156s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 156s self.dbapi_connection = connection = pool._invoke_creator(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 156s return dialect.connect(*cargs, **cparams) 156s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 156s return self.loaded_dbapi.connect(*cargs, **cparams) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 156s connection_factory = None, cursor_factory = None 156s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 156s kwasync = {} 156s 156s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 156s """ 156s Create a new database connection. 156s 156s The connection parameters can be specified as a string: 156s 156s conn = psycopg2.connect("dbname=test user=postgres password=secret") 156s 156s or using a set of keyword arguments: 156s 156s conn = psycopg2.connect(database="test", user="postgres", password="secret") 156s 156s Or as a mix of both. The basic connection parameters are: 156s 156s - *dbname*: the database name 156s - *database*: the database name (only as keyword argument) 156s - *user*: user name used to authenticate 156s - *password*: password used to authenticate 156s - *host*: database host address (defaults to UNIX socket if not provided) 156s - *port*: connection port number (defaults to 5432 if not provided) 156s 156s Using the *connection_factory* parameter a different class or connections 156s factory can be specified. It should be a callable object taking a dsn 156s argument. 156s 156s Using the *cursor_factory* parameter, a new default cursor factory will be 156s used by cursor(). 156s 156s Using *async*=True an asynchronous connection will be created. *async_* is 156s a valid alias (for Python versions where ``async`` is a keyword). 156s 156s Any other keyword parameter will be passed to the underlying client 156s library: the list of supported parameters depends on the library version. 156s 156s """ 156s kwasync = {} 156s if 'async' in kwargs: 156s kwasync['async'] = kwargs.pop('async') 156s if 'async_' in kwargs: 156s kwasync['async_'] = kwargs.pop('async_') 156s 156s dsn = _ext.make_dsn(dsn, **kwargs) 156s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 156s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48321 failed: FATAL: sorry, too many clients already 156s E 156s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 156s 156s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 156s =================================== FAILURES =================================== 156s ___________ TestDeclarative.test_does_not_generate_hybrid_properties ___________ 156s 156s self = 156s locale = '_slots_dispatch' 156s 156s def __getattr__(self, locale): 156s class_ = self._parentmapper.class_ 156s try: 156s > return getattr(class_, '_translation_%s' % locale) 156s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 156s 156s sqlalchemy_i18n/comparators.py:13: AttributeError 156s 156s During handling of the above exception, another exception occurred: 156s 156s self = 156s 156s def test_does_not_generate_hybrid_properties(self): 156s > self.Article() 156s 156s tests/test_hybrid_property_exclusion.py:15: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s :4: in __init__ 156s ??? 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/state.py:566: in _initialize_instance 156s manager.dispatch.init(self, args, kwargs) 156s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:497: in __call__ 156s fn(*args, **kw) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4396: in _event_on_init 156s instrumenting_mapper._check_configure() 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2388: in _check_configure 156s _configure_registries({self.registry}, cascade=True) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 156s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 156s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 156s fn(*args, **kw) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 156s fn(*arg, **kw) 156s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 156s RelationshipBuilder(self, cls)() 156s sqlalchemy_i18n/builders.py:228: in __call__ 156s self.assign_translations() 156s sqlalchemy_i18n/builders.py:186: in assign_translations 156s mapper.add_property('_translations', sa.orm.relationship( 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 156s prop = self._configure_property( 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 156s prop.post_instrument_class(self) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 156s self.strategy.init_class_attribute(mapper) 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 156s _register_attribute( 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 156s desc = attributes.register_attribute_impl( 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 156s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 156s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 156s if hasattr(obj, "_slots_dispatch"): 156s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 156s return getattr(self.comparator, key) 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s self = 156s locale = '_slots_dispatch' 156s 156s def __getattr__(self, locale): 156s class_ = self._parentmapper.class_ 156s try: 156s return getattr(class_, '_translation_%s' % locale) 156s except AttributeError: 156s > raise UnknownLocaleError(locale, class_) 156s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 156s 156s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 156s =============================== warnings summary =============================== 156s sqlalchemy_i18n/translatable.py:62 156s /tmp/autopkgtest.XR4E9N/build.1Vh/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. 156s @sa.event.listens_for(sa.orm.mapper, 'expire') 156s 156s sqlalchemy_i18n/__init__.py:41 156s /tmp/autopkgtest.XR4E9N/build.1Vh/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. 156s sa.event.listen( 156s 156s sqlalchemy_i18n/__init__.py:44 156s /tmp/autopkgtest.XR4E9N/build.1Vh/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. 156s sa.event.listen( 156s 156s tests/test_common_base_class.py: 1 warning 156s tests/test_comparator.py: 2 warnings 156s tests/test_composite_primary_key.py: 1 warning 156s tests/test_configuration.py: 2 warnings 156s tests/test_current_translation_property.py: 3 warnings 156s tests/test_current_translation_property_with_locale.py: 1 warning 156s tests/test_custom_base_class.py: 1 warning 156s tests/test_fallback_locale_as_callable.py: 2 warnings 156s tests/test_fallback_locale_without_class_default.py: 2 warnings 156s tests/test_fallback_translation.py: 3 warnings 156s tests/test_find_translations.py: 2 warnings 156s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 156s tests/test_hybrid_property_exclusion.py: 1 warning 156s tests/test_join_expressions.py: 4 warnings 156s tests/test_joined_loading.py: 5 warnings 156s tests/test_joined_table_inheritance.py: 8 warnings 156s tests/test_property_collision.py: 1 warning 156s tests/test_relationships.py: 1 warning 156s tests/test_translatable.py: 8 warnings 156s tests/test_translation_auto_creation.py: 1 warning 156s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 156s tests/test_translation_mapping.py: 4 warnings 156s /tmp/autopkgtest.XR4E9N/build.1Vh/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) 156s self.Model = declarative_base() 156s 156s tests/test_common_base_class.py: 2 warnings 156s tests/test_comparator.py: 2 warnings 156s tests/test_composite_primary_key.py: 1 warning 156s tests/test_configuration.py: 2 warnings 156s tests/test_current_translation_property.py: 3 warnings 156s tests/test_current_translation_property_with_locale.py: 1 warning 156s tests/test_custom_base_class.py: 1 warning 156s tests/test_fallback_locale_as_callable.py: 2 warnings 156s tests/test_fallback_locale_without_class_default.py: 2 warnings 156s tests/test_fallback_translation.py: 3 warnings 156s tests/test_find_translations.py: 2 warnings 156s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 156s tests/test_hybrid_property_exclusion.py: 1 warning 156s tests/test_join_expressions.py: 4 warnings 156s tests/test_joined_loading.py: 5 warnings 156s tests/test_joined_table_inheritance.py: 8 warnings 156s tests/test_property_collision.py: 1 warning 156s tests/test_relationships.py: 1 warning 156s tests/test_translatable.py: 8 warnings 156s tests/test_translation_auto_creation.py: 1 warning 156s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 156s tests/test_translation_mapping.py: 4 warnings 156s /tmp/autopkgtest.XR4E9N/build.1Vh/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) 156s if has_inherited_table(cls): 156s 156s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 156s =========================== short test summary info ============================ 156s FAILED tests/test_hybrid_property_exclusion.py::TestDeclarative::test_does_not_generate_hybrid_properties 156s ERROR tests/test_common_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 156s ERROR tests/test_common_base_class.py::TestClassic::test_translatable_dict_copied_to_each_child_class 156s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 156s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessors - s... 156s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessor_for_unknown_locale 156s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessors - sqlal... 156s ERROR tests/test_composite_primary_key.py::TestDeclarative::test_relationships 156s ERROR tests/test_composite_primary_key.py::TestClassic::test_relationships - ... 156s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_foreign_key_args 156s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_relationships_args 156s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_object_property 156s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_class_property 156s ERROR tests/test_current_translation_property.py::TestDeclarative::test_setter 156s ERROR tests/test_current_translation_property.py::TestClassic::test_as_object_property 156s ERROR tests/test_current_translation_property.py::TestClassic::test_as_class_property 156s ERROR tests/test_current_translation_property.py::TestClassic::test_setter - ... 156s ERROR tests/test_current_translation_property_with_locale.py::TestDeclarative::test_converts_locale_object_to_unicode 156s ERROR tests/test_current_translation_property_with_locale.py::TestClassic::test_converts_locale_object_to_unicode 156s ERROR tests/test_custom_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 156s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 156s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_locale_fallback 156s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 156s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_locale_fallback 156s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 156s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_locale_fallback 156s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 156s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_locale_fallback 156s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_object_property_with_force_locale 156s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_class_property 156s ERROR tests/test_fallback_translation.py::TestDeclarative::test_setter - sqla... 156s ERROR tests/test_fallback_translation.py::TestClassic::test_as_object_property_with_force_locale 156s ERROR tests/test_fallback_translation.py::TestClassic::test_as_class_property 156s ERROR tests/test_fallback_translation.py::TestClassic::test_setter - sqlalche... 156s ERROR tests/test_find_translations.py::TestDeclarative::test_with_full_confidence 156s ERROR tests/test_find_translations.py::TestDeclarative::test_with_varying_confidence 156s ERROR tests/test_find_translations.py::TestClassic::test_with_full_confidence 156s ERROR tests/test_find_translations.py::TestClassic::test_with_varying_confidence 156s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestDeclarative::test_joinedload_for_current_translation 156s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestClassic::test_joinedload_for_current_translation 156s ERROR tests/test_hybrid_property_exclusion.py::TestClassic::test_does_not_generate_hybrid_properties 156s ERROR tests/test_join_expressions.py::TestDeclarative::test_current_translation_as_expression 156s ERROR tests/test_join_expressions.py::TestDeclarative::test_order_by_translation 156s ERROR tests/test_join_expressions.py::TestDeclarative::test_fallback_locale_as_expression 156s ERROR tests/test_join_expressions.py::TestDeclarative::test_querying - sqlalc... 156s ERROR tests/test_join_expressions.py::TestClassic::test_current_translation_as_expression 156s ERROR tests/test_join_expressions.py::TestClassic::test_order_by_translation 156s ERROR tests/test_join_expressions.py::TestClassic::test_fallback_locale_as_expression 156s ERROR tests/test_join_expressions.py::TestClassic::test_querying - sqlalchemy... 156s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_current_translation 156s ERROR tests/test_joined_loading.py::TestDeclarative::test_contains_eager_for_current_translation 156s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_single_translation 156s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_attr_accessor 156s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_all_translations 156s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_current_translation 156s ERROR tests/test_joined_loading.py::TestClassic::test_contains_eager_for_current_translation 156s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_single_translation 156s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_attr_accessor 156s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_all_translations 156s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_relations 156s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_current_translation 156s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translatable_attributes 156s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_child_properties 156s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translated_columns 156s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_property_delegators 156s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_table_name 156s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_parent_table 156s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_relations 156s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_current_translation 156s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translatable_attributes 156s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_child_properties 156s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translated_columns 156s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_property_delegators 156s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_table_name - ... 156s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_parent_table 156s ERROR tests/test_relationships.py::TestDeclarative::test_nullify_relation - s... 156s ERROR tests/test_relationships.py::TestClassic::test_nullify_relation - sqlal... 156s ERROR tests/test_translatable.py::TestDeclarative::test_auto_creates_relations 156s ERROR tests/test_translatable.py::TestDeclarative::test_translatable_attributes 156s ERROR tests/test_translatable.py::TestDeclarative::test_relationship_consistency 156s ERROR tests/test_translatable.py::TestDeclarative::test_property_delegators 156s ERROR tests/test_translatable.py::TestDeclarative::test_commit_session - sqla... 156s ERROR tests/test_translatable.py::TestDeclarative::test_delete - sqlalchemy_i... 156s ERROR tests/test_translatable.py::TestDeclarative::test_translated_columns - ... 156s ERROR tests/test_translatable.py::TestDeclarative::test_appends_locale_column_to_translation_table 156s ERROR tests/test_translatable.py::TestClassic::test_auto_creates_relations - ... 156s ERROR tests/test_translatable.py::TestClassic::test_translatable_attributes 156s ERROR tests/test_translatable.py::TestClassic::test_relationship_consistency 156s ERROR tests/test_translatable.py::TestClassic::test_property_delegators - sql... 156s ERROR tests/test_translatable.py::TestClassic::test_commit_session - sqlalche... 156s ERROR tests/test_translatable.py::TestClassic::test_delete - sqlalchemy.exc.I... 156s ERROR tests/test_translatable.py::TestClassic::test_translated_columns - sqla... 156s ERROR tests/test_translatable.py::TestClassic::test_appends_locale_column_to_translation_table 156s ERROR tests/test_translation_auto_creation.py::TestDeclarative::test_auto_creates_translation_objects 156s ERROR tests/test_translation_auto_creation.py::TestClassic::test_auto_creates_translation_objects 156s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestDeclarative::test_auto_sets_nullables_as_empty_strings 156s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestClassic::test_auto_sets_nullables_as_empty_strings 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_contains 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_translation_mapping_attribute_getter 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_not_contains 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_items - sqlalc... 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iteritems - sq... 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_set_item - sql... 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_repr - sqlalch... 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iter - sqlalch... 156s ERROR tests/test_translation_mapping.py::TestDeclarative::test_values - sqlal... 156s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_contains - s... 156s ERROR tests/test_translation_mapping.py::TestClassic::test_translation_mapping_attribute_getter 156s ERROR tests/test_translation_mapping.py::TestClassic::test_attribute_accessor_for_unknown_locale 156s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_not_contains 156s ERROR tests/test_translation_mapping.py::TestClassic::test_items - sqlalchemy... 156s ERROR tests/test_translation_mapping.py::TestClassic::test_iteritems - sqlalc... 156s ERROR tests/test_translation_mapping.py::TestClassic::test_set_item - sqlalch... 156s ERROR tests/test_translation_mapping.py::TestClassic::test_repr - sqlalchemy.... 156s ERROR tests/test_translation_mapping.py::TestClassic::test_iter - sqlalchemy....2024-11-14 14:49:31.298 UTC [4360] LOG: received smart shutdown request 160s 2024-11-14 14:49:36.307 UTC [4375] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.308 UTC [4462] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.309 UTC [4461] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.310 UTC [4370] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.311 UTC [4457] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.311 UTC [4373] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.312 UTC [4455] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.313 UTC [4391] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.314 UTC [4451] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.314 UTC [4405] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.315 UTC [4450] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.316 UTC [4388] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.317 UTC [4442] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.317 UTC [4414] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.318 UTC [4440] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.319 UTC [4380] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.319 UTC [4435] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.321 UTC [4399] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.321 UTC [4434] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.322 UTC [4426] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.322 UTC [4417] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.324 UTC [4398] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.324 UTC [4384] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.325 UTC [4396] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.326 UTC [4372] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.327 UTC [4393] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.327 UTC [4412] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.328 UTC [4387] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.329 UTC [4420] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.330 UTC [4382] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.330 UTC [4390] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.331 UTC [4374] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.332 UTC [4413] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.333 UTC [4371] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.334 UTC [4409] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.335 UTC [4422] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.337 UTC [4404] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.338 UTC [4406] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.340 UTC [4428] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.340 UTC [4369] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.341 UTC [4466] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.341 UTC [4386] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.343 UTC [4467] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.343 UTC [4383] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.344 UTC [4468] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.345 UTC [4395] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.346 UTC [4425] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.346 UTC [4401] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.347 UTC [4429] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.348 UTC [4416] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.349 UTC [4424] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.349 UTC [4389] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.350 UTC [4427] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.351 UTC [4377] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.352 UTC [4423] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.353 UTC [4368] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.353 UTC [4430] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.354 UTC [4376] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.355 UTC [4431] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.356 UTC [4403] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.356 UTC [4432] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.357 UTC [4379] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.358 UTC [4433] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.359 UTC [4436] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.360 UTC [4402] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.360 UTC [4437] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.361 UTC [4408] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.362 UTC [4438] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.363 UTC [4381] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.364 UTC [4439] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.365 UTC [4378] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.365 UTC [4441] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.367 UTC [4400] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.367 UTC [4444] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.368 UTC [4392] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.368 UTC [4445] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.370 UTC [4397] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.370 UTC [4446] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.372 UTC [4394] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.372 UTC [4447] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.373 UTC [4448] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.375 UTC [4449] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.375 UTC [4385] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.376 UTC [4452] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.376 UTC [4410] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.378 UTC [4453] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.378 UTC [4419] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.379 UTC [4454] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.379 UTC [4411] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.380 UTC [4456] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.382 UTC [4418] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.382 UTC [4469] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.383 UTC [4415] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.383 UTC [4458] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.385 UTC [4459] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.385 UTC [4421] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.387 UTC [4460] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.387 UTC [4463] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.388 UTC [4464] FATAL: terminating connection due to unexpected postmaster exit 160s 2024-11-14 14:49:36.390 UTC [4465] FATAL: terminating connection due to unexpected postmaster exit 160s 160s ERROR tests/test_translation_mapping.py::TestClassic::test_values - sqlalchem... 160s ============ 1 failed, 2 passed, 114 warnings, 116 errors in 18.89s ============ 160s stopping server 160s clean up 160s autopkgtest [14:49:36]: test setup-db-and-run-tests.py: -----------------------] 161s autopkgtest [14:49:37]: test setup-db-and-run-tests.py: - - - - - - - - - - results - - - - - - - - - - 161s setup-db-and-run-tests.py PASS 162s autopkgtest [14:49:38]: @@@@@@@@@@@@@@@@@@@@ summary 162s setup-db-and-run-tests.py PASS 167s nova [W] Using flock in prodstack6-s390x 167s flock: timeout while waiting to get lock 167s Creating nova instance adt-plucky-s390x-sqlalchemy-i18n-20241114-144656-juju-7f2275-prod-proposed-migration-environment-15-22d368c8-3d62-41bb-ab28-ef65c53dd6ea from image adt/ubuntu-plucky-s390x-server-20241114.img (UUID 41a907ef-1f3c-4685-a0eb-228b0d61c6b5)...