diff --git a/alembic/util/compat.py b/alembic/util/compat.py index e185cc41..fa8bc02b 100644 --- a/alembic/util/compat.py +++ b/alembic/util/compat.py @@ -24,6 +24,7 @@ is_posix = os.name == "posix" +py313 = sys.version_info >= (3, 13) py311 = sys.version_info >= (3, 11) py310 = sys.version_info >= (3, 10) py39 = sys.version_info >= (3, 9) diff --git a/tests/requirements.py b/tests/requirements.py index 2f259aa1..e21c673d 100644 --- a/tests/requirements.py +++ b/tests/requirements.py @@ -407,15 +407,19 @@ def requirements(): imports = exclusions.skip_if( requirements, "black and zimports are required for this test" ) - version = exclusions.only_if( + version_low = exclusions.only_if( lambda _: compat.py311, "python 3.11 is required" ) + version_high = exclusions.only_if( + lambda _: not compat.py313, "python 3.13 does not work right now" + ) + sqlalchemy = exclusions.only_if( lambda _: sqla_compat.sqla_2, "sqlalchemy 2 is required" ) - return imports + version + sqlalchemy + return imports + version_low + version_high + sqlalchemy @property def reflect_indexes_with_expressions(self):