You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.7 has been EOSed 27 Jun 2023 so I've been trying to update beaker code to python 3.8 using pyupgrade --py38-plus.
After apply patch generated by tis filter I found that pytest is failing
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-beaker-1.13.0-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-beaker-1.13.0-2.fc37.x86_64/usr/lib/python3.10/site-packages+ /usr/bin/pytest -ra -m 'not network' --deselect tests/test_cache.py --deselect tests/test_cache_decorator.py --deselect tests/test_cachemanager.py --deselect tests/test_container.py --deselect tests/test_cookie_domain_only.py --deselect tests/test_cookie_expires.py --deselect tests/test_cookie_only.py --deselect tests/test_database.py --deselect tests/test_domain_setting.py --deselect tests/test_increment.py --deselect tests/test_managers/test_ext_mongodb.py --deselect tests/test_managers/test_ext_redis.py --deselect tests/test_managers/test_ext_rediscluster.py --deselect tests/test_memcached.py --deselect tests/test_session.py --deselect tests/test_sqla.py --deselect tests/test_unicode_cache_keys.py3657536:C 23 Sep 2024 20:17:37.619 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.3657536:C 23 Sep 2024 20:17:37.619 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo3657536:C 23 Sep 2024 20:17:37.619 * Redis version=7.4.0, bits=64, commit=00000000, modified=0, pid=3657536, just started3657536:C 23 Sep 2024 20:17:37.619 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf3657536:M 23 Sep 2024 20:17:37.620 * Increased maximum number of open files to 10032 (it was originally set to 1024).3657536:M 23 Sep 2024 20:17:37.620 * monotonic clock: POSIX clock_gettime3657536:M 23 Sep 2024 20:17:37.622 * Running mode=standalone, port=6379.3657536:M 23 Sep 2024 20:17:37.622 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use3657536:M 23 Sep 2024 20:17:37.622 # Failed listening on port 6379 (tcp), aborting.============================= test session starts ==============================platform linux -- Python 3.10.14, pytest-8.2.2, pluggy-1.5.0rootdir: /home/tkloczko/rpmbuild/BUILD/beaker-1.13.0configfile: setup.cfgcollected 19 items / 17 errors==================================== ERRORS ====================================_____________________ ERROR collecting tests/test_cache.py _____________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_cache.py:9: in <module> from beaker.middleware import CacheMiddlewarebeaker/middleware.py:11: in <module> from beaker.cache import CacheManagerbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax________________ ERROR collecting tests/test_cache_decorator.py ________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_cache_decorator.py:4: in <module> from beaker.cache import CacheManager, cache_region, region_invalidatebeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax_________________ ERROR collecting tests/test_cachemanager.py __________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_cachemanager.py:6: in <module> from beaker.cache import CacheManager, cache_regionsbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax___________________ ERROR collecting tests/test_container.py ___________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_container.py:11: in <module> from beaker.cache import clsmapbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax______________ ERROR collecting tests/test_cookie_domain_only.py _______________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_cookie_domain_only.py:3: in <module> from beaker.middleware import SessionMiddlewarebeaker/middleware.py:11: in <module> from beaker.cache import CacheManagerbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax________________ ERROR collecting tests/test_cookie_expires.py _________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_cookie_expires.py:1: in <module> from beaker.middleware import SessionMiddlewarebeaker/middleware.py:11: in <module> from beaker.cache import CacheManagerbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax__________________ ERROR collecting tests/test_cookie_only.py __________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_cookie_only.py:6: in <module> import beaker.sessionbeaker/session.py:9: in <module> from beaker.cache import clsmapbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax___________________ ERROR collecting tests/test_database.py ____________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_database.py:3: in <module> from beaker.cache import clsmap, Cache, utilbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax________________ ERROR collecting tests/test_domain_setting.py _________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_domain_setting.py:1: in <module> from beaker.middleware import SessionMiddlewarebeaker/middleware.py:11: in <module> from beaker.cache import CacheManagerbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax___________________ ERROR collecting tests/test_increment.py ___________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_increment.py:4: in <module> from beaker.middleware import SessionMiddlewarebeaker/middleware.py:11: in <module> from beaker.cache import CacheManagerbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax___________ ERROR collecting tests/test_managers/test_ext_mongodb.py ___________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_managers/test_ext_mongodb.py:1: in <module> from beaker.cache import Cachebeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax____________ ERROR collecting tests/test_managers/test_ext_redis.py ____________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_managers/test_ext_redis.py:1: in <module> from beaker.cache import Cachebeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax________ ERROR collecting tests/test_managers/test_ext_rediscluster.py _________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_managers/test_ext_rediscluster.py:1: in <module> from beaker.cache import Cachebeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax___________________ ERROR collecting tests/test_memcached.py ___________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_memcached.py:5: in <module> from beaker.cache import Cache, CacheManager, utilbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax____________________ ERROR collecting tests/test_session.py ____________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_session.py:16: in <module> from beaker.session import CookieSession, Session, SessionObjectbeaker/session.py:9: in <module> from beaker.cache import clsmapbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax_____________________ ERROR collecting tests/test_sqla.py ______________________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_sqla.py:2: in <module> from beaker.cache import clsmap, Cache, utilbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax______________ ERROR collecting tests/test_unicode_cache_keys.py _______________/usr/lib/python3.10/site-packages/_pytest/python.py:492: in importtestmodule mod = import_path(/usr/lib/python3.10/site-packages/_pytest/pathlib.py:591: in import_path importlib.import_module(module_name)/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1050: in _gcd_import ???<frozen importlib._bootstrap>:1027: in _find_and_load ???<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:688: in _load_unlocked ???/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__)tests/test_unicode_cache_keys.py:8: in <module> from beaker.cache import CacheManagerbeaker/cache.py:20: in <module> import beaker.ext.database as databasebeaker/ext/database.py:11: in <module> from beaker.ext.sqla import SqlaNamespaceManagerE File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84E log.debug OSErrorE ^^^^^^^E SyntaxError: invalid syntax=============================== warnings summary ===============================../../../../../usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1447 /usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1447: PytestConfigWarning: Unknown config option: ignore-files self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")../../../../../usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1447 /usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1447: PytestConfigWarning: Unknown config option: where self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html=========================== short test summary info ============================ERROR tests/test_cache.pyERROR tests/test_cache_decorator.pyERROR tests/test_cachemanager.pyERROR tests/test_container.pyERROR tests/test_cookie_domain_only.pyERROR tests/test_cookie_expires.pyERROR tests/test_cookie_only.pyERROR tests/test_database.pyERROR tests/test_domain_setting.pyERROR tests/test_increment.pyERROR tests/test_managers/test_ext_mongodb.pyERROR tests/test_managers/test_ext_redis.pyERROR tests/test_managers/test_ext_rediscluster.pyERROR tests/test_memcached.pyERROR tests/test_session.pyERROR tests/test_sqla.pyERROR tests/test_unicode_cache_keys.py!!!!!!!!!!!!!!!!!!! Interrupted: 17 errors during collection !!!!!!!!!!!!!!!!!!!======================== 2 warnings, 17 errors in 1.96s ========================
It would be good to adapt beaker code for pyton 3.8 and 3.9 (next month python 3.8 will be EOSed as well).
The text was updated successfully, but these errors were encountered:
kloczek
changed the title
1.13.0: not ready for 'pyupgrade --py38-plus'
1.13.0: not ready for pyupgrade --py38-plusSep 23, 2024
Python 3.7 has been EOSed 27 Jun 2023 so I've been trying to update
beaker
code to python 3.8 usingpyupgrade --py38-plus
.After apply patch generated by tis filter I found that pytest is failing
Here is pytest output:
It would be good to adapt
beaker
code for pyton 3.8 and 3.9 (next month python 3.8 will be EOSed as well).The text was updated successfully, but these errors were encountered: