Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.13.0: not ready for pyupgrade --py38-plus #244

Open
kloczek opened this issue Sep 23, 2024 · 0 comments
Open

1.13.0: not ready for pyupgrade --py38-plus #244

kloczek opened this issue Sep 23, 2024 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Sep 23, 2024

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.py
3657536: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 oO0OoO0OoO0Oo
3657536:C 23 Sep 2024 20:17:37.619 * Redis version=7.4.0, bits=64, commit=00000000, modified=0, pid=3657536, just started
3657536: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.conf
3657536: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_gettime
3657536: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 use
3657536: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.0
rootdir: /home/tkloczko/rpmbuild/BUILD/beaker-1.13.0
configfile: setup.cfg
collected 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 CacheMiddleware
beaker/middleware.py:11: in <module>
    from beaker.cache import CacheManager
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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_invalidate
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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_regions
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 clsmap
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 SessionMiddleware
beaker/middleware.py:11: in <module>
    from beaker.cache import CacheManager
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 SessionMiddleware
beaker/middleware.py:11: in <module>
    from beaker.cache import CacheManager
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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.session
beaker/session.py:9: in <module>
    from beaker.cache import clsmap
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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, util
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 SessionMiddleware
beaker/middleware.py:11: in <module>
    from beaker.cache import CacheManager
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 SessionMiddleware
beaker/middleware.py:11: in <module>
    from beaker.cache import CacheManager
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 Cache
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 Cache
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 Cache
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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, util
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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, SessionObject
beaker/session.py:9: in <module>
    from beaker.cache import clsmap
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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, util
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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 CacheManager
beaker/cache.py:20: in <module>
    import beaker.ext.database as database
beaker/ext/database.py:11: in <module>
    from beaker.ext.sqla import SqlaNamespaceManager
E     File "/home/tkloczko/rpmbuild/BUILD/beaker-1.13.0/beaker/ext/sqla.py", line 84
E       log.debug OSError
E                 ^^^^^^^
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.py
ERROR tests/test_cache_decorator.py
ERROR tests/test_cachemanager.py
ERROR tests/test_container.py
ERROR tests/test_cookie_domain_only.py
ERROR tests/test_cookie_expires.py
ERROR tests/test_cookie_only.py
ERROR tests/test_database.py
ERROR tests/test_domain_setting.py
ERROR tests/test_increment.py
ERROR tests/test_managers/test_ext_mongodb.py
ERROR tests/test_managers/test_ext_redis.py
ERROR tests/test_managers/test_ext_rediscluster.py
ERROR tests/test_memcached.py
ERROR tests/test_session.py
ERROR tests/test_sqla.py
ERROR 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).

@kloczek kloczek changed the title 1.13.0: not ready for 'pyupgrade --py38-plus' 1.13.0: not ready for pyupgrade --py38-plus Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant