0s autopkgtest [13:59:22]: starting date and time: 2024-11-14 13:59:22+0000 0s autopkgtest [13:59:22]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [13:59:22]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.c35k5x65/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 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-arm64-1.secgroup --name adt-plucky-arm64-sqlalchemy-i18n-20241114-135922-juju-7f2275-prod-proposed-migration-environment-20-9238adb1-5fc3-4128-9827-b27c9713b6f2 --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration -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/ 79s autopkgtest [14:00:41]: testbed dpkg architecture: arm64 79s autopkgtest [14:00:41]: testbed apt version: 2.9.8 79s autopkgtest [14:00:41]: @@@@@@@@@@@@@@@@@@@@ test bed setup 80s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 81s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 81s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [983 kB] 81s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 81s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [105 kB] 81s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [132 kB] 81s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 Packages [50.3 kB] 81s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [715 kB] 81s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [6012 B] 81s Fetched 2088 kB in 1s (2175 kB/s) 81s Reading package lists... 84s Reading package lists... 85s Building dependency tree... 85s Reading state information... 86s Calculating upgrade... 87s The following packages will be upgraded: 87s pastebinit 87s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 87s Need to get 14.9 kB of archives. 87s After this operation, 0 B of additional disk space will be used. 87s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 pastebinit all 1.7.1-1 [14.9 kB] 88s Fetched 14.9 kB in 0s (67.7 kB/s) 88s (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 ... 79925 files and directories currently installed.) 88s Preparing to unpack .../pastebinit_1.7.1-1_all.deb ... 88s Unpacking pastebinit (1.7.1-1) over (1.7.0-1) ... 88s Setting up pastebinit (1.7.1-1) ... 88s Processing triggers for man-db (2.12.1-3) ... 89s Reading package lists... 89s Building dependency tree... 89s Reading state information... 90s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 91s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 91s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 91s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 91s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 92s Reading package lists... 92s Reading package lists... 93s Building dependency tree... 93s Reading state information... 94s Calculating upgrade... 94s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 94s Reading package lists... 95s Building dependency tree... 95s Reading state information... 97s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 100s autopkgtest [14:01:02]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 14:19:41 UTC 2024 100s autopkgtest [14:01:02]: @@@@@@@@@@@@@@@@@@@@ apt-source sqlalchemy-i18n 102s Get:1 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (dsc) [2462 B] 102s Get:2 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (tar) [28.2 kB] 102s Get:3 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (diff) [4212 B] 102s gpgv: Signature made Wed Jan 18 23:54:36 2023 UTC 102s gpgv: using RSA key 439884E6862A429C290DF63B033C4CA276024834 102s gpgv: issuer "athos.ribeiro@canonical.com" 102s gpgv: Can't check signature: No public key 102s dpkg-source: warning: cannot verify inline signature for ./sqlalchemy-i18n_1.1.0-1build1.dsc: no acceptable signature found 102s autopkgtest [14:01:04]: testing package sqlalchemy-i18n version 1.1.0-1build1 102s autopkgtest [14:01:04]: build not needed 102s autopkgtest [14:01:04]: test setup-db-and-run-tests.py: preparing testbed 105s Reading package lists... 106s Building dependency tree... 106s Reading state information... 106s Starting pkgProblemResolver with broken count: 0 106s Starting 2 pkgProblemResolver with broken count: 0 106s Done 107s The following additional packages will be installed: 107s libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl libpq5 libxslt1.1 107s postgresql postgresql-16 postgresql-client-16 postgresql-client-common 107s postgresql-common python3-arrow python3-dateutil python3-greenlet 107s python3-iniconfig python3-packaging python3-pluggy python3-psycopg2 107s python3-pytest python3-six python3-sqlalchemy python3-sqlalchemy-i18n 107s python3-sqlalchemy-utils ssl-cert 107s Suggested packages: 107s postgresql-doc postgresql-doc-16 python-arrow-doc python-greenlet-dev 107s python-greenlet-doc python-psycopg2-doc python-sqlalchemy-doc 107s python3-asyncpg python3-pg8000 python3-psycopg2cffi python3-aiosqlite 107s python3-mariadb-connector python3-mysqldb python3-mysql.connector 107s python3-pyodbc python3-pymssql python3-cx-oracle python3-oracledb 107s python-sqlalchemy-utils-doc python3-infinity python3-intervals 107s Recommended packages: 107s javascript-common libjson-xs-perl python3-sqlalchemy-ext 108s The following NEW packages will be installed: 108s autopkgtest-satdep libjs-jquery libjs-sphinxdoc libjs-underscore 108s libjson-perl libpq5 libxslt1.1 postgresql postgresql-16 postgresql-client-16 108s postgresql-client-common postgresql-common python3-arrow python3-dateutil 108s python3-greenlet python3-iniconfig python3-packaging python3-pluggy 108s python3-psycopg2 python3-pytest python3-six python3-sqlalchemy 108s python3-sqlalchemy-i18n python3-sqlalchemy-utils ssl-cert 108s 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. 108s Need to get 19.6 MB/19.6 MB of archives. 108s After this operation, 69.0 MB of additional disk space will be used. 108s Get:1 /tmp/autopkgtest.4H4abj/1-autopkgtest-satdep.deb autopkgtest-satdep arm64 0 [744 B] 108s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 libjson-perl all 4.10000-1 [81.9 kB] 108s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 postgresql-client-common all 262 [36.7 kB] 108s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 ssl-cert all 1.1.2ubuntu2 [18.0 kB] 108s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 postgresql-common all 262 [162 kB] 108s Get:6 http://ftpmaster.internal/ubuntu plucky/main arm64 libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 108s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 108s Get:8 http://ftpmaster.internal/ubuntu plucky/main arm64 libjs-sphinxdoc all 7.4.7-4 [158 kB] 108s Get:9 http://ftpmaster.internal/ubuntu plucky/main arm64 libpq5 arm64 17.0-1 [248 kB] 108s Get:10 http://ftpmaster.internal/ubuntu plucky/main arm64 libxslt1.1 arm64 1.1.39-0exp1ubuntu1 [167 kB] 108s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 postgresql-client-16 arm64 16.4-3 [1269 kB] 108s Get:12 http://ftpmaster.internal/ubuntu plucky/main arm64 postgresql-16 arm64 16.4-3 [15.0 MB] 109s Get:13 http://ftpmaster.internal/ubuntu plucky/main arm64 postgresql all 16+262 [11.8 kB] 109s Get:14 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-six all 1.16.0-7 [13.1 kB] 109s Get:15 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-dateutil all 2.9.0-2 [80.3 kB] 109s Get:16 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-arrow all 1.3.0-1.1ubuntu1 [56.1 kB] 109s Get:17 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-iniconfig all 1.1.1-2 [6024 B] 109s Get:18 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-packaging all 24.1-1 [41.4 kB] 109s Get:19 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pluggy all 1.5.0-1 [21.0 kB] 109s Get:20 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-psycopg2 arm64 2.9.9-2 [131 kB] 109s Get:21 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pytest all 8.3.3-1 [251 kB] 109s Get:22 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-greenlet arm64 3.0.3-0ubuntu6 [153 kB] 109s Get:23 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-sqlalchemy all 2.0.32+ds1-1ubuntu3 [1206 kB] 109s Get:24 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-sqlalchemy-utils all 0.41.1-0ubuntu1 [59.4 kB] 109s Get:25 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-sqlalchemy-i18n all 1.1.0-1build1 [26.7 kB] 110s Preconfiguring packages ... 110s Fetched 19.6 MB in 1s (14.2 MB/s) 110s Selecting previously unselected package libjson-perl. 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 ... 79925 files and directories currently installed.) 110s Preparing to unpack .../00-libjson-perl_4.10000-1_all.deb ... 110s Unpacking libjson-perl (4.10000-1) ... 110s Selecting previously unselected package postgresql-client-common. 110s Preparing to unpack .../01-postgresql-client-common_262_all.deb ... 110s Unpacking postgresql-client-common (262) ... 110s Selecting previously unselected package ssl-cert. 110s Preparing to unpack .../02-ssl-cert_1.1.2ubuntu2_all.deb ... 110s Unpacking ssl-cert (1.1.2ubuntu2) ... 110s Selecting previously unselected package postgresql-common. 110s Preparing to unpack .../03-postgresql-common_262_all.deb ... 110s Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common' 110s Unpacking postgresql-common (262) ... 110s Selecting previously unselected package libjs-jquery. 110s Preparing to unpack .../04-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 110s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 110s Selecting previously unselected package libjs-underscore. 110s Preparing to unpack .../05-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 110s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 110s Selecting previously unselected package libjs-sphinxdoc. 110s Preparing to unpack .../06-libjs-sphinxdoc_7.4.7-4_all.deb ... 110s Unpacking libjs-sphinxdoc (7.4.7-4) ... 110s Selecting previously unselected package libpq5:arm64. 110s Preparing to unpack .../07-libpq5_17.0-1_arm64.deb ... 110s Unpacking libpq5:arm64 (17.0-1) ... 110s Selecting previously unselected package libxslt1.1:arm64. 110s Preparing to unpack .../08-libxslt1.1_1.1.39-0exp1ubuntu1_arm64.deb ... 110s Unpacking libxslt1.1:arm64 (1.1.39-0exp1ubuntu1) ... 110s Selecting previously unselected package postgresql-client-16. 110s Preparing to unpack .../09-postgresql-client-16_16.4-3_arm64.deb ... 110s Unpacking postgresql-client-16 (16.4-3) ... 110s Selecting previously unselected package postgresql-16. 111s Preparing to unpack .../10-postgresql-16_16.4-3_arm64.deb ... 111s Unpacking postgresql-16 (16.4-3) ... 111s Selecting previously unselected package postgresql. 111s Preparing to unpack .../11-postgresql_16+262_all.deb ... 111s Unpacking postgresql (16+262) ... 111s Selecting previously unselected package python3-six. 111s Preparing to unpack .../12-python3-six_1.16.0-7_all.deb ... 111s Unpacking python3-six (1.16.0-7) ... 111s Selecting previously unselected package python3-dateutil. 111s Preparing to unpack .../13-python3-dateutil_2.9.0-2_all.deb ... 111s Unpacking python3-dateutil (2.9.0-2) ... 111s Selecting previously unselected package python3-arrow. 111s Preparing to unpack .../14-python3-arrow_1.3.0-1.1ubuntu1_all.deb ... 111s Unpacking python3-arrow (1.3.0-1.1ubuntu1) ... 111s Selecting previously unselected package python3-iniconfig. 111s Preparing to unpack .../15-python3-iniconfig_1.1.1-2_all.deb ... 111s Unpacking python3-iniconfig (1.1.1-2) ... 111s Selecting previously unselected package python3-packaging. 111s Preparing to unpack .../16-python3-packaging_24.1-1_all.deb ... 111s Unpacking python3-packaging (24.1-1) ... 111s Selecting previously unselected package python3-pluggy. 111s Preparing to unpack .../17-python3-pluggy_1.5.0-1_all.deb ... 111s Unpacking python3-pluggy (1.5.0-1) ... 111s Selecting previously unselected package python3-psycopg2. 111s Preparing to unpack .../18-python3-psycopg2_2.9.9-2_arm64.deb ... 111s Unpacking python3-psycopg2 (2.9.9-2) ... 111s Selecting previously unselected package python3-pytest. 111s Preparing to unpack .../19-python3-pytest_8.3.3-1_all.deb ... 111s Unpacking python3-pytest (8.3.3-1) ... 112s Selecting previously unselected package python3-greenlet. 112s Preparing to unpack .../20-python3-greenlet_3.0.3-0ubuntu6_arm64.deb ... 112s Unpacking python3-greenlet (3.0.3-0ubuntu6) ... 112s Selecting previously unselected package python3-sqlalchemy. 112s Preparing to unpack .../21-python3-sqlalchemy_2.0.32+ds1-1ubuntu3_all.deb ... 112s Unpacking python3-sqlalchemy (2.0.32+ds1-1ubuntu3) ... 112s Selecting previously unselected package python3-sqlalchemy-utils. 112s Preparing to unpack .../22-python3-sqlalchemy-utils_0.41.1-0ubuntu1_all.deb ... 112s Unpacking python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 112s Selecting previously unselected package python3-sqlalchemy-i18n. 112s Preparing to unpack .../23-python3-sqlalchemy-i18n_1.1.0-1build1_all.deb ... 112s Unpacking python3-sqlalchemy-i18n (1.1.0-1build1) ... 112s Selecting previously unselected package autopkgtest-satdep. 112s Preparing to unpack .../24-1-autopkgtest-satdep.deb ... 112s Unpacking autopkgtest-satdep (0) ... 112s Setting up postgresql-client-common (262) ... 112s Setting up python3-iniconfig (1.1.1-2) ... 112s Setting up libpq5:arm64 (17.0-1) ... 112s Setting up python3-six (1.16.0-7) ... 112s Setting up python3-packaging (24.1-1) ... 113s Setting up ssl-cert (1.1.2ubuntu2) ... 113s Created symlink '/etc/systemd/system/multi-user.target.wants/ssl-cert.service' → '/usr/lib/systemd/system/ssl-cert.service'. 114s Setting up python3-greenlet (3.0.3-0ubuntu6) ... 114s Setting up python3-psycopg2 (2.9.9-2) ... 114s Setting up python3-pluggy (1.5.0-1) ... 114s Setting up libjson-perl (4.10000-1) ... 114s Setting up libxslt1.1:arm64 (1.1.39-0exp1ubuntu1) ... 114s Setting up python3-dateutil (2.9.0-2) ... 115s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 115s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 115s Setting up python3-arrow (1.3.0-1.1ubuntu1) ... 115s Setting up python3-pytest (8.3.3-1) ... 115s Setting up postgresql-client-16 (16.4-3) ... 116s 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 116s Setting up python3-sqlalchemy (2.0.32+ds1-1ubuntu3) ... 118s Setting up postgresql-common (262) ... 119s 119s Creating config file /etc/postgresql-common/createcluster.conf with new version 119s Building PostgreSQL dictionaries from installed myspell/hunspell packages... 119s Removing obsolete dictionary files: 120s Created symlink '/etc/systemd/system/multi-user.target.wants/postgresql.service' → '/usr/lib/systemd/system/postgresql.service'. 121s Setting up libjs-sphinxdoc (7.4.7-4) ... 121s Setting up python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 121s Setting up python3-sqlalchemy-i18n (1.1.0-1build1) ... 121s Setting up postgresql-16 (16.4-3) ... 122s Creating new PostgreSQL cluster 16/main ... 122s /usr/lib/postgresql/16/bin/initdb -D /var/lib/postgresql/16/main --auth-local peer --auth-host scram-sha-256 --no-instructions 122s The files belonging to this database system will be owned by user "postgres". 122s This user must also own the server process. 122s 122s The database cluster will be initialized with locale "C.UTF-8". 122s The default database encoding has accordingly been set to "UTF8". 122s The default text search configuration will be set to "english". 122s 122s Data page checksums are disabled. 122s 122s fixing permissions on existing directory /var/lib/postgresql/16/main ... ok 122s creating subdirectories ... ok 122s selecting dynamic shared memory implementation ... posix 122s selecting default max_connections ... 100 122s selecting default shared_buffers ... 128MB 122s selecting default time zone ... Etc/UTC 122s creating configuration files ... ok 122s running bootstrap script ... ok 123s performing post-bootstrap initialization ... ok 123s syncing data to disk ... ok 127s Setting up postgresql (16+262) ... 127s Setting up autopkgtest-satdep (0) ... 127s Processing triggers for man-db (2.12.1-3) ... 128s Processing triggers for libc-bin (2.40-1ubuntu3) ... 134s (Reading database ... 82709 files and directories currently installed.) 134s Removing autopkgtest-satdep (0) ... 136s autopkgtest [14:01:38]: test setup-db-and-run-tests.py: [----------------------- 136s The files belonging to this database system will be owned by user "ubuntu". 136s This user must also own the server process. 136s 136s The database cluster will be initialized with this locale configuration: 136s provider: libc 136s LC_COLLATE: C.UTF-8 136s LC_CTYPE: C.UTF-8 136s LC_MESSAGES: C 136s LC_MONETARY: C.UTF-8 136s LC_NUMERIC: C.UTF-8 136s LC_TIME: C.UTF-8 136s The default database encoding has accordingly been set to "UTF8". 136s The default text search configuration will be set to "english". 136s 136s Data page checksums are disabled. 136s 136s creating directory /tmp/tmpke3nisl3/data ... ok 136s creating subdirectories ... ok 136s selecting dynamic shared memory implementation ... posix 136s selecting default max_connections ... 100 136s selecting default shared_buffers ... 128MB 136s selecting default time zone ... Etc/UTC 136s creating configuration files ... ok 136s running bootstrap script ... ok 137s performing post-bootstrap initialization ... ok 137s syncing data to disk ... ok 137s 137s Success. You can now start the database server using: 137s 137s /usr/lib/postgresql/16/bin/pg_ctl -D /tmp/tmpke3nisl3/data -l logfile start 137s 137s 2024-11-14 14:01:39.471 UTC [4349] LOG: starting PostgreSQL 16.4 (Ubuntu 16.4-3) on aarch64-unknown-linux-gnu, compiled by gcc (Ubuntu 14.2.0-7ubuntu1) 14.2.0, 64-bit 137s 2024-11-14 14:01:39.472 UTC [4349] LOG: listening on IPv6 address "::1", port 48325 137s 2024-11-14 14:01:39.472 UTC [4349] LOG: listening on IPv4 address "127.0.0.1", port 48325 137s 2024-11-14 14:01:39.472 UTC [4349] LOG: listening on Unix socket "/tmp/tmpke3nisl3/tmp/.s.PGSQL.48325" 137s 2024-11-14 14:01:39.477 UTC [4352] LOG: database system was shut down at 2024-11-14 14:01:39 UTC 137s 2024-11-14 14:01:39.486 UTC [4349] LOG: database system is ready to accept connections 138s running initdb 138s starting server 138s ============================= test session starts ============================== 138s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 138s rootdir: /tmp/autopkgtest.4H4abj/build.eCi/src 138s plugins: typeguard-4.4.1 138s collected 119 items 138s 139s tests/test_common_base_class.py EE [ 1%] 140s tests/test_comparator.py EEEE [ 5%] 140s tests/test_composite_primary_key.py EE [ 6%] 141s tests/test_configuration.py EE [ 8%] 143s tests/test_current_translation_property.py EEEEEE [ 13%] 143s tests/test_current_translation_property_with_locale.py EE [ 15%] 143s tests/test_custom_base_class.py E [ 15%] 143s tests/test_expressions.py . [ 16%] 144s tests/test_fallback_locale_as_callable.py EEEE [ 20%] 145s tests/test_fallback_locale_without_class_default.py EEEE [ 23%] 146s tests/test_fallback_translation.py EEEEEE [ 28%] 146s tests/test_find_translations.py EEEE [ 31%] 147s tests/test_hybrid_property_as_dynamic_source_locale.py EE [ 33%] 147s tests/test_hybrid_property_exclusion.py FE [ 35%] 148s tests/test_join_expressions.py EEEEEEEE [ 42%] 151s tests/test_joined_loading.py EEEEEEEEEE [ 50%] 153s tests/test_joined_table_inheritance.py EEEEEEEEEEEEEEEE [ 63%] 153s tests/test_property_collision.py . [ 64%] 153s tests/test_relationships.py EE [ 66%] 156s tests/test_translatable.py EEEEEEEEEEEEEEEE [ 79%] 157s tests/test_translation_auto_creation.py EE [ 81%] 157s tests/test_translation_auto_creation_with_non_nullables.py EE [ 83%] 158s tests/test_translation_mapping.py EEEE2024-11-14 14:02:00.835 UTC [4459] FATAL: sorry, too many clients already 159s E2024-11-14 14:02:01.186 UTC [4460] FATAL: sorry, too many clients already 159s E2024-11-14 14:02:01.553 UTC [4461] FATAL: sorry, too many clients already 159s E2024-11-14 14:02:01.912 UTC [4462] FATAL: sorry, too many clients already 160s E2024-11-14 14:02:02.272 UTC [4463] FATAL: sorry, too many clients already 160s E2024-11-14 14:02:02.619 UTC [4464] FATAL: sorry, too many clients already 161s E2024-11-14 14:02:02.975 UTC [4465] FATAL: sorry, too many clients already 161s E2024-11-14 14:02:03.342 UTC [4466] FATAL: sorry, too many clients already 161s E2024-11-14 14:02:03.691 UTC [4467] FATAL: sorry, too many clients already 162s E2024-11-14 14:02:04.057 UTC [4468] FATAL: sorry, too many clients already 162s E2024-11-14 14:02:04.406 UTC [4469] FATAL: sorry, too many clients already 162s E2024-11-14 14:02:04.908 UTC [4470] FATAL: sorry, too many clients already 163s E2024-11-14 14:02:05.258 UTC [4471] FATAL: sorry, too many clients already 163s E2024-11-14 14:02:05.609 UTC [4472] FATAL: sorry, too many clients already 164s E2024-11-14 14:02:05.971 UTC [4473] FATAL: sorry, too many clients already 164s E2024-11-14 14:02:06.319 UTC [4474] FATAL: sorry, too many clients already 164s E [100%] 164s 164s ==================================== ERRORS ==================================== 164s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'TextItem' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestClassic.test_translatable_dict_copied_to_each_child_class _ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.textitems) 164s 164s tests/test_common_base_class.py:105: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('textitems', MetaData(), Column('id', Integer(), table=, primary_key=True, nullable=False), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestDeclarative.test_attribute_accessors __________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ____________ ERROR at setup of TestClassic.test_attribute_accessors ____________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _____________ ERROR at setup of TestDeclarative.test_relationships _____________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _______________ ERROR at setup of TestClassic.test_relationships _______________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), C...y_key=True, nullable=False), Column('id2', Integer(), table=
, primary_key=True, nullable=False), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_foreign_key_args _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_relationships_args _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestDeclarative.test_as_object_property ___________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ____________ ERROR at setup of TestClassic.test_as_object_property _____________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __________________ ERROR at setup of TestClassic.test_setter ___________________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ___ ERROR at setup of TestDeclarative.test_converts_locale_object_to_unicode ___ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _____ ERROR at setup of TestClassic.test_converts_locale_object_to_unicode _____ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('arti...able=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _ ERROR at setup of TestDeclarative.test_as_object_property_with_force_locale __ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ___ ERROR at setup of TestClassic.test_as_object_property_with_force_locale ____ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __________________ ERROR at setup of TestClassic.test_setter ___________________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _________ ERROR at setup of TestDeclarative.test_with_full_confidence __________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ________ ERROR at setup of TestDeclarative.test_with_varying_confidence ________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ___________ ERROR at setup of TestClassic.test_with_full_confidence ____________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __________ ERROR at setup of TestClassic.test_with_varying_confidence __________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > DeclarativeTestCase.setup_method(self, method) 164s 164s tests/test_hybrid_property_as_dynamic_source_locale.py:25: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:57: in setup_method 164s sa.orm.configure_mappers() 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > ClassicTestCase.setup_method(self, method) 164s 164s tests/test_hybrid_property_as_dynamic_source_locale.py:61: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:140: in setup_method 164s self.create_mappers() 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('arti...
), Column('_locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ____ ERROR at setup of TestClassic.test_does_not_generate_hybrid_properties ____ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(...e=
, default=ScalarElementColumnDefault('en')), Column('word_count', Integer(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ___ ERROR at setup of TestDeclarative.test_current_translation_as_expression ___ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _________ ERROR at setup of TestDeclarative.test_order_by_translation __________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _____ ERROR at setup of TestDeclarative.test_fallback_locale_as_expression _____ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _______________ ERROR at setup of TestDeclarative.test_querying ________________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _____ ERROR at setup of TestClassic.test_current_translation_as_expression _____ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ___________ ERROR at setup of TestClassic.test_order_by_translation ____________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _______ ERROR at setup of TestClassic.test_fallback_locale_as_expression _______ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _________________ ERROR at setup of TestClassic.test_querying __________________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > DeclarativeTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:59: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:57: in setup_method 164s sa.orm.configure_mappers() 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestDeclarative.test_contains_eager_for_current_translation _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > DeclarativeTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:59: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:57: in setup_method 164s sa.orm.configure_mappers() 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ___ ERROR at setup of TestDeclarative.test_joinedload_for_single_translation ___ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > DeclarativeTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:59: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:57: in setup_method 164s sa.orm.configure_mappers() 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _____ ERROR at setup of TestDeclarative.test_joinedload_for_attr_accessor ______ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > DeclarativeTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:59: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:57: in setup_method 164s sa.orm.configure_mappers() 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ____ ERROR at setup of TestDeclarative.test_joinedload_for_all_translations ____ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > DeclarativeTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:59: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:57: in setup_method 164s sa.orm.configure_mappers() 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > ClassicTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:71: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:140: in setup_method 164s self.create_mappers() 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __ ERROR at setup of TestClassic.test_contains_eager_for_current_translation ___ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > ClassicTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:71: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:140: in setup_method 164s self.create_mappers() 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _____ ERROR at setup of TestClassic.test_joinedload_for_single_translation _____ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > ClassicTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:71: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:140: in setup_method 164s self.create_mappers() 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _______ ERROR at setup of TestClassic.test_joinedload_for_attr_accessor ________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > ClassicTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:71: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:140: in setup_method 164s self.create_mappers() 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ______ ERROR at setup of TestClassic.test_joinedload_for_all_translations ______ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > ClassicTestCase.setup_method(self, method) 164s 164s tests/test_joined_loading.py:71: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:140: in setup_method 164s self.create_mappers() 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ___ ERROR at setup of TestDeclarative.test_auto_creates_current_translation ____ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _______ ERROR at setup of TestDeclarative.test_inherits_child_properties _______ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ______________ ERROR at setup of TestDeclarative.test_table_name _______________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _________ ERROR at setup of TestDeclarative.test_inherits_parent_table _________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.text_item, 164s polymorphic_on=self.text_item.c.discriminator) 164s 164s tests/test_joined_table_inheritance.py:155: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _____ ERROR at setup of TestClassic.test_auto_creates_current_translation ______ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.text_item, 164s polymorphic_on=self.text_item.c.discriminator) 164s 164s tests/test_joined_table_inheritance.py:155: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.text_item, 164s polymorphic_on=self.text_item.c.discriminator) 164s 164s tests/test_joined_table_inheritance.py:155: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _________ ERROR at setup of TestClassic.test_inherits_child_properties _________ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.text_item, 164s polymorphic_on=self.text_item.c.discriminator) 164s 164s tests/test_joined_table_inheritance.py:155: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.text_item, 164s polymorphic_on=self.text_item.c.discriminator) 164s 164s tests/test_joined_table_inheritance.py:155: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.text_item, 164s polymorphic_on=self.text_item.c.discriminator) 164s 164s tests/test_joined_table_inheritance.py:155: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ________________ ERROR at setup of TestClassic.test_table_name _________________ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.text_item, 164s polymorphic_on=self.text_item.c.discriminator) 164s 164s tests/test_joined_table_inheritance.py:155: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ___________ ERROR at setup of TestClassic.test_inherits_parent_table ___________ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.TextItem, self.text_item, 164s polymorphic_on=self.text_item.c.discriminator) 164s 164s tests/test_joined_table_inheritance.py:155: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ___________ ERROR at setup of TestDeclarative.test_nullify_relation ____________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Category' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _____________ ERROR at setup of TestClassic.test_nullify_relation ______________ 164s 164s self = 164s 164s def create_mappers(self): 164s > sa.orm.mapper(self.Article, self.article) 164s 164s tests/test_relationships.py:101: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('i...), table=
, primary_key=True, nullable=False), Column('content', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _______ ERROR at setup of TestDeclarative.test_relationship_consistency ________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ____________ ERROR at setup of TestDeclarative.test_commit_session _____________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ________________ ERROR at setup of TestDeclarative.test_delete _________________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestDeclarative.test_appends_locale_column_to_translation_table _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _________ ERROR at setup of TestClassic.test_relationship_consistency __________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ______________ ERROR at setup of TestClassic.test_commit_session _______________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s __________________ ERROR at setup of TestClassic.test_delete ___________________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _ ERROR at setup of TestClassic.test_appends_locale_column_to_translation_table _ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s 164s self.create_tables() 164s self.create_models() 164s > self.create_mappers() 164s 164s tests/__init__.py:140: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ___ ERROR at setup of TestDeclarative.test_auto_creates_translation_objects ____ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > DeclarativeTestCase.setup_method(self, method) 164s 164s tests/test_translation_auto_creation.py:21: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:57: in setup_method 164s sa.orm.configure_mappers() 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _____ ERROR at setup of TestClassic.test_auto_creates_translation_objects ______ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > ClassicTestCase.setup_method(self, method) 164s 164s tests/test_translation_auto_creation.py:31: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:140: in setup_method 164s self.create_mappers() 164s tests/__init__.py:213: in create_mappers 164s sa.orm.mapper(self.Article, self.article) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 164s kw = {} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s _ ERROR at setup of TestDeclarative.test_auto_sets_nullables_as_empty_strings __ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'ExtendedArticle' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > DeclarativeTestCase.setup_method(self, method) 164s 164s tests/test_translation_auto_creation_with_non_nullables.py:26: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:57: in setup_method 164s sa.orm.configure_mappers() 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 164s mapper._adapt_inherited_property(key, prop, init) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 164s self._configure_property(key, prop, init=False, setparent=False) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 164s prop.instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 164s attributes.register_descriptor( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 164s descriptor = InstrumentedAttribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 164s self.dispatch._update(base[key].dispatch) 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s ___ ERROR at setup of TestClassic.test_auto_sets_nullables_as_empty_strings ____ 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s > ClassicTestCase.setup_method(self, method) 164s 164s tests/test_translation_auto_creation_with_non_nullables.py:75: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s tests/__init__.py:140: in setup_method 164s self.create_mappers() 164s tests/test_translation_auto_creation_with_non_nullables.py:135: in create_mappers 164s sa.orm.mapper(self.Article, self.article, 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s arg = (.Article'>, Table('...ription', UnicodeText(), table=
), Column('discriminator', Unicode(length=255), table=
), schema=None)) 164s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=
)} 164s 164s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 164s """Placeholder for the now-removed ``mapper()`` function. 164s 164s Classical mappings should be performed using the 164s :meth:`_orm.registry.map_imperatively` method. 164s 164s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 164s of using the ``mapper()`` function as a target for ORM event listeners, 164s which failed to be marked as deprecated in the 1.4 series. 164s 164s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 164s class as the target. 164s 164s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 164s symbol remains temporarily as a placeholder for the event listening 164s use case. 164s 164s """ 164s > raise InvalidRequestError( 164s "The 'sqlalchemy.orm.mapper()' function is removed as of " 164s "SQLAlchemy 2.0. Use the " 164s "'sqlalchemy.orm.registry.map_imperatively()` " 164s "method of the ``sqlalchemy.orm.registry`` class to perform " 164s "classical mapping." 164s ) 164s 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. 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 164s ____________ ERROR at setup of TestDeclarative.test_proxy_contains _____________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestDeclarative.test_translation_mapping_attribute_getter __ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s __________ ERROR at setup of TestDeclarative.test_proxy_not_contains ___________ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s > return getattr(class_, '_translation_%s' % locale) 164s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 164s 164s sqlalchemy_i18n/comparators.py:13: AttributeError 164s 164s During handling of the above exception, another exception occurred: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s self.connection = self.engine.connect() 164s self.connection.query_count = 0 164s self.Model = declarative_base() 164s 164s self.create_models() 164s 164s if self.configure_mappers: 164s > sa.orm.configure_mappers() 164s 164s tests/__init__.py:57: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 164s _configure_registries(_all_registries(), cascade=True) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 164s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 164s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 164s fn(*args, **kw) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 164s fn(*arg, **kw) 164s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 164s RelationshipBuilder(self, cls)() 164s sqlalchemy_i18n/builders.py:228: in __call__ 164s self.assign_translations() 164s sqlalchemy_i18n/builders.py:186: in assign_translations 164s mapper.add_property('_translations', sa.orm.relationship( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 164s prop = self._configure_property( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 164s prop.post_instrument_class(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 164s self.strategy.init_class_attribute(mapper) 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 164s _register_attribute( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 164s desc = attributes.register_attribute_impl( 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 164s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 164s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 164s if hasattr(obj, "_slots_dispatch"): 164s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 164s return getattr(self.comparator, key) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s self = 164s locale = '_slots_dispatch' 164s 164s def __getattr__(self, locale): 164s class_ = self._parentmapper.class_ 164s try: 164s return getattr(class_, '_translation_%s' % locale) 164s except AttributeError: 164s > raise UnknownLocaleError(locale, class_) 164s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 164s 164s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 164s _________________ ERROR at setup of TestDeclarative.test_items _________________ 164s 164s self = 164s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 164s connection = None, _has_events = None, _allow_revalidate = True 164s _allow_autobegin = True 164s 164s def __init__( 164s self, 164s engine: Engine, 164s connection: Optional[PoolProxiedConnection] = None, 164s _has_events: Optional[bool] = None, 164s _allow_revalidate: bool = True, 164s _allow_autobegin: bool = True, 164s ): 164s """Construct a new Connection.""" 164s self.engine = engine 164s self.dialect = dialect = engine.dialect 164s 164s if connection is None: 164s try: 164s > self._dbapi_connection = engine.raw_connection() 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s 164s The above exception was the direct cause of the following exception: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s > self.connection = self.engine.connect() 164s 164s tests/__init__.py:50: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 164s return self._connection_cls(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 164s Connection._handle_dbapi_exception_noconnection( 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 164s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 164s self._dbapi_connection = engine.raw_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s E 164s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s _______________ ERROR at setup of TestDeclarative.test_iteritems _______________ 164s 164s self = 164s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 164s connection = None, _has_events = None, _allow_revalidate = True 164s _allow_autobegin = True 164s 164s def __init__( 164s self, 164s engine: Engine, 164s connection: Optional[PoolProxiedConnection] = None, 164s _has_events: Optional[bool] = None, 164s _allow_revalidate: bool = True, 164s _allow_autobegin: bool = True, 164s ): 164s """Construct a new Connection.""" 164s self.engine = engine 164s self.dialect = dialect = engine.dialect 164s 164s if connection is None: 164s try: 164s > self._dbapi_connection = engine.raw_connection() 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s 164s The above exception was the direct cause of the following exception: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s > self.connection = self.engine.connect() 164s 164s tests/__init__.py:50: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 164s return self._connection_cls(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 164s Connection._handle_dbapi_exception_noconnection( 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 164s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 164s self._dbapi_connection = engine.raw_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s E 164s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s _______________ ERROR at setup of TestDeclarative.test_set_item ________________ 164s 164s self = 164s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 164s connection = None, _has_events = None, _allow_revalidate = True 164s _allow_autobegin = True 164s 164s def __init__( 164s self, 164s engine: Engine, 164s connection: Optional[PoolProxiedConnection] = None, 164s _has_events: Optional[bool] = None, 164s _allow_revalidate: bool = True, 164s _allow_autobegin: bool = True, 164s ): 164s """Construct a new Connection.""" 164s self.engine = engine 164s self.dialect = dialect = engine.dialect 164s 164s if connection is None: 164s try: 164s > self._dbapi_connection = engine.raw_connection() 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s 164s The above exception was the direct cause of the following exception: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s > self.connection = self.engine.connect() 164s 164s tests/__init__.py:50: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 164s return self._connection_cls(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 164s Connection._handle_dbapi_exception_noconnection( 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 164s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 164s self._dbapi_connection = engine.raw_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s E 164s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s _________________ ERROR at setup of TestDeclarative.test_repr __________________ 164s 164s self = 164s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 164s connection = None, _has_events = None, _allow_revalidate = True 164s _allow_autobegin = True 164s 164s def __init__( 164s self, 164s engine: Engine, 164s connection: Optional[PoolProxiedConnection] = None, 164s _has_events: Optional[bool] = None, 164s _allow_revalidate: bool = True, 164s _allow_autobegin: bool = True, 164s ): 164s """Construct a new Connection.""" 164s self.engine = engine 164s self.dialect = dialect = engine.dialect 164s 164s if connection is None: 164s try: 164s > self._dbapi_connection = engine.raw_connection() 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s 164s The above exception was the direct cause of the following exception: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s > self.connection = self.engine.connect() 164s 164s tests/__init__.py:50: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 164s return self._connection_cls(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 164s Connection._handle_dbapi_exception_noconnection( 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 164s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 164s self._dbapi_connection = engine.raw_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s E 164s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s _________________ ERROR at setup of TestDeclarative.test_iter __________________ 164s 164s self = 164s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 164s connection = None, _has_events = None, _allow_revalidate = True 164s _allow_autobegin = True 164s 164s def __init__( 164s self, 164s engine: Engine, 164s connection: Optional[PoolProxiedConnection] = None, 164s _has_events: Optional[bool] = None, 164s _allow_revalidate: bool = True, 164s _allow_autobegin: bool = True, 164s ): 164s """Construct a new Connection.""" 164s self.engine = engine 164s self.dialect = dialect = engine.dialect 164s 164s if connection is None: 164s try: 164s > self._dbapi_connection = engine.raw_connection() 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s 164s The above exception was the direct cause of the following exception: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s > self.connection = self.engine.connect() 164s 164s tests/__init__.py:50: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 164s return self._connection_cls(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 164s Connection._handle_dbapi_exception_noconnection( 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 164s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 164s self._dbapi_connection = engine.raw_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s E 164s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s ________________ ERROR at setup of TestDeclarative.test_values _________________ 164s 164s self = 164s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 164s connection = None, _has_events = None, _allow_revalidate = True 164s _allow_autobegin = True 164s 164s def __init__( 164s self, 164s engine: Engine, 164s connection: Optional[PoolProxiedConnection] = None, 164s _has_events: Optional[bool] = None, 164s _allow_revalidate: bool = True, 164s _allow_autobegin: bool = True, 164s ): 164s """Construct a new Connection.""" 164s self.engine = engine 164s self.dialect = dialect = engine.dialect 164s 164s if connection is None: 164s try: 164s > self._dbapi_connection = engine.raw_connection() 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s 164s The above exception was the direct cause of the following exception: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.engine = create_engine(self.engine_uri) 164s # self.engine.echo = True 164s > self.connection = self.engine.connect() 164s 164s tests/__init__.py:50: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 164s return self._connection_cls(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 164s Connection._handle_dbapi_exception_noconnection( 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 164s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 164s self._dbapi_connection = engine.raw_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s E 164s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s ______________ ERROR at setup of TestClassic.test_proxy_contains _______________ 164s 164s self = 164s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 164s connection = None, _has_events = None, _allow_revalidate = True 164s _allow_autobegin = True 164s 164s def __init__( 164s self, 164s engine: Engine, 164s connection: Optional[PoolProxiedConnection] = None, 164s _has_events: Optional[bool] = None, 164s _allow_revalidate: bool = True, 164s _allow_autobegin: bool = True, 164s ): 164s """Construct a new Connection.""" 164s self.engine = engine 164s self.dialect = dialect = engine.dialect 164s 164s if connection is None: 164s try: 164s > self._dbapi_connection = engine.raw_connection() 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s 164s The above exception was the direct cause of the following exception: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s > self.connection = self.engine.connect() 164s 164s tests/__init__.py:135: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 164s return self._connection_cls(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 164s Connection._handle_dbapi_exception_noconnection( 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 164s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 164s self._dbapi_connection = engine.raw_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s E 164s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s ___ ERROR at setup of TestClassic.test_translation_mapping_attribute_getter ____ 164s 164s self = 164s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 164s connection = None, _has_events = None, _allow_revalidate = True 164s _allow_autobegin = True 164s 164s def __init__( 164s self, 164s engine: Engine, 164s connection: Optional[PoolProxiedConnection] = None, 164s _has_events: Optional[bool] = None, 164s _allow_revalidate: bool = True, 164s _allow_autobegin: bool = True, 164s ): 164s """Construct a new Connection.""" 164s self.engine = engine 164s self.dialect = dialect = engine.dialect 164s 164s if connection is None: 164s try: 164s > self._dbapi_connection = engine.raw_connection() 164s 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 164s return self.pool.connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 164s return _ConnectionFairy._checkout(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 164s fairy = _ConnectionRecord.checkout(pool) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 164s rec = pool._do_get() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 164s return self._create_connection() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 164s return _ConnectionRecord(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 164s self.__connect() 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 164s with util.safe_reraise(): 164s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 164s raise exc_value.with_traceback(exc_tb) 164s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 164s self.dbapi_connection = connection = pool._invoke_creator(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 164s return dialect.connect(*cargs, **cparams) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 164s return self.loaded_dbapi.connect(*cargs, **cparams) 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s 164s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 164s connection_factory = None, cursor_factory = None 164s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 164s kwasync = {} 164s 164s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 164s """ 164s Create a new database connection. 164s 164s The connection parameters can be specified as a string: 164s 164s conn = psycopg2.connect("dbname=test user=postgres password=secret") 164s 164s or using a set of keyword arguments: 164s 164s conn = psycopg2.connect(database="test", user="postgres", password="secret") 164s 164s Or as a mix of both. The basic connection parameters are: 164s 164s - *dbname*: the database name 164s - *database*: the database name (only as keyword argument) 164s - *user*: user name used to authenticate 164s - *password*: password used to authenticate 164s - *host*: database host address (defaults to UNIX socket if not provided) 164s - *port*: connection port number (defaults to 5432 if not provided) 164s 164s Using the *connection_factory* parameter a different class or connections 164s factory can be specified. It should be a callable object taking a dsn 164s argument. 164s 164s Using the *cursor_factory* parameter, a new default cursor factory will be 164s used by cursor(). 164s 164s Using *async*=True an asynchronous connection will be created. *async_* is 164s a valid alias (for Python versions where ``async`` is a keyword). 164s 164s Any other keyword parameter will be passed to the underlying client 164s library: the list of supported parameters depends on the library version. 164s 164s """ 164s kwasync = {} 164s if 'async' in kwargs: 164s kwasync['async'] = kwargs.pop('async') 164s if 'async_' in kwargs: 164s kwasync['async_'] = kwargs.pop('async_') 164s 164s dsn = _ext.make_dsn(dsn, **kwargs) 164s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 164s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 164s 164s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 164s 164s The above exception was the direct cause of the following exception: 164s 164s self = 164s method = > 164s 164s def setup_method(self, method): 164s self.metadata = sa.MetaData() 164s 164s self.engine = sa.create_engine(self.engine_uri) 164s # self.engine.echo = True 164s > self.connection = self.engine.connect() 164s 164s tests/__init__.py:135: 164s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 164s return self._connection_cls(self) 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 164s Connection._handle_dbapi_exception_noconnection( 164s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 165s 165s self = 165s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 165s connection = None, _has_events = None, _allow_revalidate = True 165s _allow_autobegin = True 165s 165s def __init__( 165s self, 165s engine: Engine, 165s connection: Optional[PoolProxiedConnection] = None, 165s _has_events: Optional[bool] = None, 165s _allow_revalidate: bool = True, 165s _allow_autobegin: bool = True, 165s ): 165s """Construct a new Connection.""" 165s self.engine = engine 165s self.dialect = dialect = engine.dialect 165s 165s if connection is None: 165s try: 165s > self._dbapi_connection = engine.raw_connection() 165s 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s 165s The above exception was the direct cause of the following exception: 165s 165s self = 165s method = > 165s 165s def setup_method(self, method): 165s self.metadata = sa.MetaData() 165s 165s self.engine = sa.create_engine(self.engine_uri) 165s # self.engine.echo = True 165s > self.connection = self.engine.connect() 165s 165s tests/__init__.py:135: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 165s return self._connection_cls(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 165s Connection._handle_dbapi_exception_noconnection( 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s ____________ ERROR at setup of TestClassic.test_proxy_not_contains _____________ 165s 165s self = 165s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 165s connection = None, _has_events = None, _allow_revalidate = True 165s _allow_autobegin = True 165s 165s def __init__( 165s self, 165s engine: Engine, 165s connection: Optional[PoolProxiedConnection] = None, 165s _has_events: Optional[bool] = None, 165s _allow_revalidate: bool = True, 165s _allow_autobegin: bool = True, 165s ): 165s """Construct a new Connection.""" 165s self.engine = engine 165s self.dialect = dialect = engine.dialect 165s 165s if connection is None: 165s try: 165s > self._dbapi_connection = engine.raw_connection() 165s 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s 165s The above exception was the direct cause of the following exception: 165s 165s self = 165s method = > 165s 165s def setup_method(self, method): 165s self.metadata = sa.MetaData() 165s 165s self.engine = sa.create_engine(self.engine_uri) 165s # self.engine.echo = True 165s > self.connection = self.engine.connect() 165s 165s tests/__init__.py:135: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 165s return self._connection_cls(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 165s Connection._handle_dbapi_exception_noconnection( 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s ___________________ ERROR at setup of TestClassic.test_items ___________________ 165s 165s self = 165s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 165s connection = None, _has_events = None, _allow_revalidate = True 165s _allow_autobegin = True 165s 165s def __init__( 165s self, 165s engine: Engine, 165s connection: Optional[PoolProxiedConnection] = None, 165s _has_events: Optional[bool] = None, 165s _allow_revalidate: bool = True, 165s _allow_autobegin: bool = True, 165s ): 165s """Construct a new Connection.""" 165s self.engine = engine 165s self.dialect = dialect = engine.dialect 165s 165s if connection is None: 165s try: 165s > self._dbapi_connection = engine.raw_connection() 165s 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s 165s The above exception was the direct cause of the following exception: 165s 165s self = 165s method = > 165s 165s def setup_method(self, method): 165s self.metadata = sa.MetaData() 165s 165s self.engine = sa.create_engine(self.engine_uri) 165s # self.engine.echo = True 165s > self.connection = self.engine.connect() 165s 165s tests/__init__.py:135: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 165s return self._connection_cls(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 165s Connection._handle_dbapi_exception_noconnection( 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s _________________ ERROR at setup of TestClassic.test_iteritems _________________ 165s 165s self = 165s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 165s connection = None, _has_events = None, _allow_revalidate = True 165s _allow_autobegin = True 165s 165s def __init__( 165s self, 165s engine: Engine, 165s connection: Optional[PoolProxiedConnection] = None, 165s _has_events: Optional[bool] = None, 165s _allow_revalidate: bool = True, 165s _allow_autobegin: bool = True, 165s ): 165s """Construct a new Connection.""" 165s self.engine = engine 165s self.dialect = dialect = engine.dialect 165s 165s if connection is None: 165s try: 165s > self._dbapi_connection = engine.raw_connection() 165s 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s 165s The above exception was the direct cause of the following exception: 165s 165s self = 165s method = > 165s 165s def setup_method(self, method): 165s self.metadata = sa.MetaData() 165s 165s self.engine = sa.create_engine(self.engine_uri) 165s # self.engine.echo = True 165s > self.connection = self.engine.connect() 165s 165s tests/__init__.py:135: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 165s return self._connection_cls(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 165s Connection._handle_dbapi_exception_noconnection( 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s _________________ ERROR at setup of TestClassic.test_set_item __________________ 165s 165s self = 165s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 165s connection = None, _has_events = None, _allow_revalidate = True 165s _allow_autobegin = True 165s 165s def __init__( 165s self, 165s engine: Engine, 165s connection: Optional[PoolProxiedConnection] = None, 165s _has_events: Optional[bool] = None, 165s _allow_revalidate: bool = True, 165s _allow_autobegin: bool = True, 165s ): 165s """Construct a new Connection.""" 165s self.engine = engine 165s self.dialect = dialect = engine.dialect 165s 165s if connection is None: 165s try: 165s > self._dbapi_connection = engine.raw_connection() 165s 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s 165s The above exception was the direct cause of the following exception: 165s 165s self = 165s method = > 165s 165s def setup_method(self, method): 165s self.metadata = sa.MetaData() 165s 165s self.engine = sa.create_engine(self.engine_uri) 165s # self.engine.echo = True 165s > self.connection = self.engine.connect() 165s 165s tests/__init__.py:135: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 165s return self._connection_cls(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 165s Connection._handle_dbapi_exception_noconnection( 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s ___________________ ERROR at setup of TestClassic.test_repr ____________________ 165s 165s self = 165s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 165s connection = None, _has_events = None, _allow_revalidate = True 165s _allow_autobegin = True 165s 165s def __init__( 165s self, 165s engine: Engine, 165s connection: Optional[PoolProxiedConnection] = None, 165s _has_events: Optional[bool] = None, 165s _allow_revalidate: bool = True, 165s _allow_autobegin: bool = True, 165s ): 165s """Construct a new Connection.""" 165s self.engine = engine 165s self.dialect = dialect = engine.dialect 165s 165s if connection is None: 165s try: 165s > self._dbapi_connection = engine.raw_connection() 165s 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s 165s The above exception was the direct cause of the following exception: 165s 165s self = 165s method = > 165s 165s def setup_method(self, method): 165s self.metadata = sa.MetaData() 165s 165s self.engine = sa.create_engine(self.engine_uri) 165s # self.engine.echo = True 165s > self.connection = self.engine.connect() 165s 165s tests/__init__.py:135: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 165s return self._connection_cls(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 165s Connection._handle_dbapi_exception_noconnection( 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s ___________________ ERROR at setup of TestClassic.test_iter ____________________ 165s 165s self = 165s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 165s connection = None, _has_events = None, _allow_revalidate = True 165s _allow_autobegin = True 165s 165s def __init__( 165s self, 165s engine: Engine, 165s connection: Optional[PoolProxiedConnection] = None, 165s _has_events: Optional[bool] = None, 165s _allow_revalidate: bool = True, 165s _allow_autobegin: bool = True, 165s ): 165s """Construct a new Connection.""" 165s self.engine = engine 165s self.dialect = dialect = engine.dialect 165s 165s if connection is None: 165s try: 165s > self._dbapi_connection = engine.raw_connection() 165s 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s 165s The above exception was the direct cause of the following exception: 165s 165s self = 165s method = > 165s 165s def setup_method(self, method): 165s self.metadata = sa.MetaData() 165s 165s self.engine = sa.create_engine(self.engine_uri) 165s # self.engine.echo = True 165s > self.connection = self.engine.connect() 165s 165s tests/__init__.py:135: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 165s return self._connection_cls(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 165s Connection._handle_dbapi_exception_noconnection( 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s __________________ ERROR at setup of TestClassic.test_values ___________________ 165s 165s self = 165s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 165s connection = None, _has_events = None, _allow_revalidate = True 165s _allow_autobegin = True 165s 165s def __init__( 165s self, 165s engine: Engine, 165s connection: Optional[PoolProxiedConnection] = None, 165s _has_events: Optional[bool] = None, 165s _allow_revalidate: bool = True, 165s _allow_autobegin: bool = True, 165s ): 165s """Construct a new Connection.""" 165s self.engine = engine 165s self.dialect = dialect = engine.dialect 165s 165s if connection is None: 165s try: 165s > self._dbapi_connection = engine.raw_connection() 165s 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E psycopg2.OperationalError: connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s 165s The above exception was the direct cause of the following exception: 165s 165s self = 165s method = > 165s 165s def setup_method(self, method): 165s self.metadata = sa.MetaData() 165s 165s self.engine = sa.create_engine(self.engine_uri) 165s # self.engine.echo = True 165s > self.connection = self.engine.connect() 165s 165s tests/__init__.py:135: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 165s return self._connection_cls(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 165s Connection._handle_dbapi_exception_noconnection( 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 165s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 165s self._dbapi_connection = engine.raw_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 165s return self.pool.connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 165s return _ConnectionFairy._checkout(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 165s fairy = _ConnectionRecord.checkout(pool) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 165s rec = pool._do_get() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 165s return self._create_connection() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 165s return _ConnectionRecord(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 165s self.__connect() 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 165s with util.safe_reraise(): 165s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 165s raise exc_value.with_traceback(exc_tb) 165s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 165s self.dbapi_connection = connection = pool._invoke_creator(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 165s return dialect.connect(*cargs, **cparams) 165s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 165s return self.loaded_dbapi.connect(*cargs, **cparams) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 165s connection_factory = None, cursor_factory = None 165s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 165s kwasync = {} 165s 165s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 165s """ 165s Create a new database connection. 165s 165s The connection parameters can be specified as a string: 165s 165s conn = psycopg2.connect("dbname=test user=postgres password=secret") 165s 165s or using a set of keyword arguments: 165s 165s conn = psycopg2.connect(database="test", user="postgres", password="secret") 165s 165s Or as a mix of both. The basic connection parameters are: 165s 165s - *dbname*: the database name 165s - *database*: the database name (only as keyword argument) 165s - *user*: user name used to authenticate 165s - *password*: password used to authenticate 165s - *host*: database host address (defaults to UNIX socket if not provided) 165s - *port*: connection port number (defaults to 5432 if not provided) 165s 165s Using the *connection_factory* parameter a different class or connections 165s factory can be specified. It should be a callable object taking a dsn 165s argument. 165s 165s Using the *cursor_factory* parameter, a new default cursor factory will be 165s used by cursor(). 165s 165s Using *async*=True an asynchronous connection will be created. *async_* is 165s a valid alias (for Python versions where ``async`` is a keyword). 165s 165s Any other keyword parameter will be passed to the underlying client 165s library: the list of supported parameters depends on the library version. 165s 165s """ 165s kwasync = {} 165s if 'async' in kwargs: 165s kwasync['async'] = kwargs.pop('async') 165s if 'async_' in kwargs: 165s kwasync['async_'] = kwargs.pop('async_') 165s 165s dsn = _ext.make_dsn(dsn, **kwargs) 165s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 165s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 48325 failed: FATAL: sorry, too many clients already 165s E 165s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 165s 165s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 165s =================================== FAILURES =================================== 165s ___________ TestDeclarative.test_does_not_generate_hybrid_properties ___________ 165s 165s self = 165s locale = '_slots_dispatch' 165s 165s def __getattr__(self, locale): 165s class_ = self._parentmapper.class_ 165s try: 165s > return getattr(class_, '_translation_%s' % locale) 165s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 165s 165s sqlalchemy_i18n/comparators.py:13: AttributeError 165s 165s During handling of the above exception, another exception occurred: 165s 165s self = 165s 165s def test_does_not_generate_hybrid_properties(self): 165s > self.Article() 165s 165s tests/test_hybrid_property_exclusion.py:15: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s :4: in __init__ 165s ??? 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/state.py:566: in _initialize_instance 165s manager.dispatch.init(self, args, kwargs) 165s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:497: in __call__ 165s fn(*args, **kw) 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4396: in _event_on_init 165s instrumenting_mapper._check_configure() 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2388: in _check_configure 165s _configure_registries({self.registry}, cascade=True) 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 165s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 165s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 165s fn(*args, **kw) 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 165s fn(*arg, **kw) 165s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 165s RelationshipBuilder(self, cls)() 165s sqlalchemy_i18n/builders.py:228: in __call__ 165s self.assign_translations() 165s sqlalchemy_i18n/builders.py:186: in assign_translations 165s mapper.add_property('_translations', sa.orm.relationship( 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 165s prop = self._configure_property( 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 165s prop.post_instrument_class(self) 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 165s self.strategy.init_class_attribute(mapper) 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 165s _register_attribute( 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 165s desc = attributes.register_attribute_impl( 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 165s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 165s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 165s if hasattr(obj, "_slots_dispatch"): 165s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 165s return getattr(self.comparator, key) 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s locale = '_slots_dispatch' 165s 165s def __getattr__(self, locale): 165s class_ = self._parentmapper.class_ 165s try: 165s return getattr(class_, '_translation_%s' % locale) 165s except AttributeError: 165s > raise UnknownLocaleError(locale, class_) 165s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 165s 165s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 165s =============================== warnings summary =============================== 165s sqlalchemy_i18n/translatable.py:62 165s /tmp/autopkgtest.4H4abj/build.eCi/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. 165s @sa.event.listens_for(sa.orm.mapper, 'expire') 165s 165s sqlalchemy_i18n/__init__.py:41 165s /tmp/autopkgtest.4H4abj/build.eCi/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. 165s sa.event.listen( 165s 165s sqlalchemy_i18n/__init__.py:44 165s /tmp/autopkgtest.4H4abj/build.eCi/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. 165s sa.event.listen( 165s 165s tests/test_common_base_class.py: 1 warning 165s tests/test_comparator.py: 2 warnings 165s tests/test_composite_primary_key.py: 1 warning 165s tests/test_configuration.py: 2 warnings 165s tests/test_current_translation_property.py: 3 warnings 165s tests/test_current_translation_property_with_locale.py: 1 warning 165s tests/test_custom_base_class.py: 1 warning 165s tests/test_fallback_locale_as_callable.py: 2 warnings 165s tests/test_fallback_locale_without_class_default.py: 2 warnings 165s tests/test_fallback_translation.py: 3 warnings 165s tests/test_find_translations.py: 2 warnings 165s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 165s tests/test_hybrid_property_exclusion.py: 1 warning 165s tests/test_join_expressions.py: 4 warnings 165s tests/test_joined_loading.py: 5 warnings 165s tests/test_joined_table_inheritance.py: 8 warnings 165s tests/test_property_collision.py: 1 warning 165s tests/test_relationships.py: 1 warning 165s tests/test_translatable.py: 8 warnings 165s tests/test_translation_auto_creation.py: 1 warning 165s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 165s tests/test_translation_mapping.py: 4 warnings 165s /tmp/autopkgtest.4H4abj/build.eCi/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) 165s self.Model = declarative_base() 165s 165s tests/test_common_base_class.py: 2 warnings 165s tests/test_comparator.py: 2 warnings 165s tests/test_composite_primary_key.py: 1 warning 165s tests/test_configuration.py: 2 warnings 165s tests/test_current_translation_property.py: 3 warnings 165s tests/test_current_translation_property_with_locale.py: 1 warning 165s tests/test_custom_base_class.py: 1 warning 165s tests/test_fallback_locale_as_callable.py: 2 warnings 165s tests/test_fallback_locale_without_class_default.py: 2 warnings 165s tests/test_fallback_translation.py: 3 warnings 165s tests/test_find_translations.py: 2 warnings 165s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 165s tests/test_hybrid_property_exclusion.py: 1 warning 165s tests/test_join_expressions.py: 4 warnings 165s tests/test_joined_loading.py: 5 warnings 165s tests/test_joined_table_inheritance.py: 8 warnings 165s tests/test_property_collision.py: 1 warning 165s tests/test_relationships.py: 1 warning 165s tests/test_translatable.py: 8 warnings 165s tests/test_translation_auto_creation.py: 1 warning 165s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 165s tests/test_translation_mapping.py: 4 warnings 165s /tmp/autopkgtest.4H4abj/build.eCi/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) 165s if has_inherited_table(cls): 165s 165s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 165s =========================== short test summary info ============================ 165s FAILED tests/test_hybrid_property_exclusion.py::TestDeclarative::test_does_not_generate_hybrid_properties 165s ERROR tests/test_common_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 165s ERROR tests/test_common_base_class.py::TestClassic::test_translatable_dict_copied_to_each_child_class 165s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 165s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessors - s... 165s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessor_for_unknown_locale 165s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessors - sqlal... 165s ERROR tests/test_composite_primary_key.py::TestDeclarative::test_relationships 165s ERROR tests/test_composite_primary_key.py::TestClassic::test_relationships - ... 165s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_foreign_key_args 165s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_relationships_args 165s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_object_property 165s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_class_property 165s ERROR tests/test_current_translation_property.py::TestDeclarative::test_setter 165s ERROR tests/test_current_translation_property.py::TestClassic::test_as_object_property 165s ERROR tests/test_current_translation_property.py::TestClassic::test_as_class_property 165s ERROR tests/test_current_translation_property.py::TestClassic::test_setter - ... 165s ERROR tests/test_current_translation_property_with_locale.py::TestDeclarative::test_converts_locale_object_to_unicode 165s ERROR tests/test_current_translation_property_with_locale.py::TestClassic::test_converts_locale_object_to_unicode 165s ERROR tests/test_custom_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 165s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 165s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_locale_fallback 165s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 165s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_locale_fallback 165s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 165s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_locale_fallback 165s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 165s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_locale_fallback 165s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_object_property_with_force_locale 165s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_class_property 165s ERROR tests/test_fallback_translation.py::TestDeclarative::test_setter - sqla... 165s ERROR tests/test_fallback_translation.py::TestClassic::test_as_object_property_with_force_locale 165s ERROR tests/test_fallback_translation.py::TestClassic::test_as_class_property 165s ERROR tests/test_fallback_translation.py::TestClassic::test_setter - sqlalche... 165s ERROR tests/test_find_translations.py::TestDeclarative::test_with_full_confidence 165s ERROR tests/test_find_translations.py::TestDeclarative::test_with_varying_confidence 165s ERROR tests/test_find_translations.py::TestClassic::test_with_full_confidence 165s ERROR tests/test_find_translations.py::TestClassic::test_with_varying_confidence 165s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestDeclarative::test_joinedload_for_current_translation 165s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestClassic::test_joinedload_for_current_translation 165s ERROR tests/test_hybrid_property_exclusion.py::TestClassic::test_does_not_generate_hybrid_properties 165s ERROR tests/test_join_expressions.py::TestDeclarative::test_current_translation_as_expression 165s ERROR tests/test_join_expressions.py::TestDeclarative::test_order_by_translation 165s ERROR tests/test_join_expressions.py::TestDeclarative::test_fallback_locale_as_expression 165s ERROR tests/test_join_expressions.py::TestDeclarative::test_querying - sqlalc... 165s ERROR tests/test_join_expressions.py::TestClassic::test_current_translation_as_expression 165s ERROR tests/test_join_expressions.py::TestClassic::test_order_by_translation 165s ERROR tests/test_join_expressions.py::TestClassic::test_fallback_locale_as_expression 165s ERROR tests/test_join_expressions.py::TestClassic::test_querying - sqlalchemy... 165s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_current_translation 165s ERROR tests/test_joined_loading.py::TestDeclarative::test_contains_eager_for_current_translation 165s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_single_translation 165s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_attr_accessor 165s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_all_translations 165s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_current_translation 165s ERROR tests/test_joined_loading.py::TestClassic::test_contains_eager_for_current_translation 165s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_single_translation 165s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_attr_accessor 165s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_all_translations 165s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_relations 165s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_current_translation 165s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translatable_attributes 165s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_child_properties 165s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translated_columns 165s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_property_delegators 165s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_table_name 165s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_parent_table 165s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_relations 165s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_current_translation 165s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translatable_attributes 165s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_child_properties 165s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translated_columns 165s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_property_delegators 165s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_table_name - ... 165s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_parent_table 165s ERROR tests/test_relationships.py::TestDeclarative::test_nullify_relation - s... 165s ERROR tests/test_relationships.py::TestClassic::test_nullify_relation - sqlal... 165s ERROR tests/test_translatable.py::TestDeclarative::test_auto_creates_relations 165s ERROR tests/test_translatable.py::TestDeclarative::test_translatable_attributes 165s ERROR tests/test_translatable.py::TestDeclarative::test_relationship_consistency 165s ERROR tests/test_translatable.py::TestDeclarative::test_property_delegators 165s ERROR tests/test_translatable.py::TestDeclarative::test_commit_session - sqla... 165s ERROR tests/test_translatable.py::TestDeclarative::test_delete - sqlalchemy_i... 165s ERROR tests/test_translatable.py::TestDeclarative::test_translated_columns - ... 165s ERROR tests/test_translatable.py::TestDeclarative::test_appends_locale_column_to_translation_table 165s ERROR tests/test_translatable.py::TestClassic::test_auto_creates_relations - ... 165s ERROR tests/test_translatable.py::TestClassic::test_translatable_attributes 165s ERROR tests/test_translatable.py::TestClassic::test_relationship_consistency 165s ERROR tests/test_translatable.py::TestClassic::test_property_delegators - sql... 165s ERROR tests/test_translatable.py::TestClassic::test_commit_session - sqlalche... 165s ERROR tests/test_translatable.py::TestClassic::test_delete - sqlalchemy.exc.I... 165s ERROR tests/test_translatable.py::TestClassic::test_translated_columns - sqla... 165s ERROR tests/test_translatable.py::TestClassic::test_appends_locale_column_to_translation_table 165s ERROR tests/test_translation_auto_creation.py::TestDeclarative::test_auto_creates_translation_objects 165s ERROR tests/test_translation_auto_creation.py::TestClassic::test_auto_creates_translation_objects 165s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestDeclarative::test_auto_sets_nullables_as_empty_strings 165s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestClassic::test_auto_sets_nullables_as_empty_strings 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_contains 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_translation_mapping_attribute_getter 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_not_contains 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_items - sqlalc... 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iteritems - sq... 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_set_item - sql... 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_repr - sqlalch... 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iter - sqlalch... 165s ERROR tests/test_translation_mapping.py::TestDeclarative::test_values - sqlal... 165s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_contains - s... 165s ERROR tests/test_translation_mapping.py::TestClassic::test_translation_mapping_attribute_getter 165s ERROR tests/test_translation_mapping.py::TestClassic::test_attribute_accessor_for_unknown_locale 165s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_not_contains 165s ERROR tests/test_translation_mapping.py::TestClassic::test_items - sqlalchemy... 165s ERROR tests/test_translation_mapping.py::TestClassic::test_iteritems - sqlalc...2024-11-14 14:02:06.727 UTC [4349] LOG: received smart shutdown request 169s 2024-11-14 14:02:11.737 UTC [4412] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.737 UTC [4361] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.739 UTC [4427] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.739 UTC [4422] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.741 UTC [4388] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.741 UTC [4415] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.742 UTC [4413] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.743 UTC [4431] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.743 UTC [4411] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.745 UTC [4416] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.745 UTC [4409] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.746 UTC [4433] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.747 UTC [4391] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.748 UTC [4429] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.749 UTC [4389] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.750 UTC [4414] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.751 UTC [4387] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.752 UTC [4370] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.753 UTC [4384] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.754 UTC [4371] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.755 UTC [4383] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.756 UTC [4367] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.757 UTC [4382] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.759 UTC [4366] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.759 UTC [4381] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.760 UTC [4365] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.761 UTC [4380] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.762 UTC [4363] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.763 UTC [4379] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.764 UTC [4364] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.765 UTC [4378] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.766 UTC [4362] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.767 UTC [4377] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.768 UTC [4359] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.769 UTC [4376] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.770 UTC [4358] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.770 UTC [4360] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.771 UTC [4375] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.773 UTC [4374] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.775 UTC [4372] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.776 UTC [4406] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.777 UTC [4369] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.778 UTC [4407] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.780 UTC [4405] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.784 UTC [4399] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.785 UTC [4373] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.787 UTC [4398] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.787 UTC [4394] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.788 UTC [4397] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.789 UTC [4392] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.791 UTC [4393] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.791 UTC [4395] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.793 UTC [4438] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.793 UTC [4368] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.795 UTC [4357] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.795 UTC [4385] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.797 UTC [4386] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.799 UTC [4390] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.799 UTC [4404] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.801 UTC [4403] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.801 UTC [4448] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.802 UTC [4457] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.803 UTC [4447] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.804 UTC [4402] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.805 UTC [4446] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.806 UTC [4456] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.807 UTC [4445] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.808 UTC [4455] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.809 UTC [4444] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.810 UTC [4454] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.811 UTC [4437] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.813 UTC [4453] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.813 UTC [4443] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.815 UTC [4442] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.815 UTC [4452] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.817 UTC [4401] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.817 UTC [4441] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.819 UTC [4440] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.819 UTC [4451] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.821 UTC [4439] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.821 UTC [4450] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.823 UTC [4449] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.825 UTC [4400] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.827 UTC [4436] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.829 UTC [4435] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.831 UTC [4434] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.831 UTC [4410] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.833 UTC [4430] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.833 UTC [4408] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.835 UTC [4428] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.835 UTC [4417] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.837 UTC [4426] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.839 UTC [4425] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.841 UTC [4424] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.843 UTC [4420] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.845 UTC [4419] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.847 UTC [4418] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.849 UTC [4458] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.851 UTC [4421] FATAL: terminating connection due to unexpected postmaster exit 169s 2024-11-14 14:02:11.853 UTC [4423] FATAL: terminating connection due to unexpected postmaster exit 169s 169s ERROR tests/test_translation_mapping.py::TestClassic::test_set_item - sqlalch... 169s ERROR tests/test_translation_mapping.py::TestClassic::test_repr - sqlalchemy.... 169s ERROR tests/test_translation_mapping.py::TestClassic::test_iter - sqlalchemy.... 169s ERROR tests/test_translation_mapping.py::TestClassic::test_values - sqlalchem... 169s ============ 1 failed, 2 passed, 114 warnings, 116 errors in 26.90s ============ 169s stopping server 169s clean up 170s autopkgtest [14:02:12]: test setup-db-and-run-tests.py: -----------------------] 171s autopkgtest [14:02:13]: test setup-db-and-run-tests.py: - - - - - - - - - - results - - - - - - - - - - 171s setup-db-and-run-tests.py PASS 172s autopkgtest [14:02:14]: @@@@@@@@@@@@@@@@@@@@ summary 172s setup-db-and-run-tests.py PASS 184s nova [W] Skipping flock in bos03-arm64 184s Creating nova instance adt-plucky-arm64-sqlalchemy-i18n-20241114-135922-juju-7f2275-prod-proposed-migration-environment-20-9238adb1-5fc3-4128-9827-b27c9713b6f2 from image adt/ubuntu-plucky-arm64-server-20241114.img (UUID 4472f5f7-859f-4441-9e8e-9550fb35f210)...