Skip to content

Commit

Permalink
block write_pyi tests for py313
Browse files Browse the repository at this point in the history
write_pyi.py seems to produce entirely broken results
on python 3.13

Change-Id: I037b917d9ca346e455848b0cd6d41e6ce152ddd2
  • Loading branch information
zzzeek committed Dec 3, 2024
1 parent 18c2d6c commit 483f5fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions alembic/util/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions tests/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 483f5fe

Please sign in to comment.