Skip to content

Commit 483f5fe

Browse files
committed
block write_pyi tests for py313
write_pyi.py seems to produce entirely broken results on python 3.13 Change-Id: I037b917d9ca346e455848b0cd6d41e6ce152ddd2
1 parent 18c2d6c commit 483f5fe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

alembic/util/compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
is_posix = os.name == "posix"
2626

27+
py313 = sys.version_info >= (3, 13)
2728
py311 = sys.version_info >= (3, 11)
2829
py310 = sys.version_info >= (3, 10)
2930
py39 = sys.version_info >= (3, 9)

tests/requirements.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,15 +407,19 @@ def requirements():
407407
imports = exclusions.skip_if(
408408
requirements, "black and zimports are required for this test"
409409
)
410-
version = exclusions.only_if(
410+
version_low = exclusions.only_if(
411411
lambda _: compat.py311, "python 3.11 is required"
412412
)
413413

414+
version_high = exclusions.only_if(
415+
lambda _: not compat.py313, "python 3.13 does not work right now"
416+
)
417+
414418
sqlalchemy = exclusions.only_if(
415419
lambda _: sqla_compat.sqla_2, "sqlalchemy 2 is required"
416420
)
417421

418-
return imports + version + sqlalchemy
422+
return imports + version_low + version_high + sqlalchemy
419423

420424
@property
421425
def reflect_indexes_with_expressions(self):

0 commit comments

Comments
 (0)