Add Python 3.13 (beta1) support

This commit is contained in:
Ran Benita
2024-05-17 09:59:29 +03:00
parent dbee3fa34a
commit 1cb704ff2c
10 changed files with 45 additions and 13 deletions

View File

@@ -370,7 +370,11 @@ def test_getfslineno() -> None:
pass
B.__name__ = B.__qualname__ = "B2"
assert getfslineno(B)[1] == -1
# Since Python 3.13 this started working.
if sys.version_info >= (3, 13):
assert getfslineno(B)[1] != -1
else:
assert getfslineno(B)[1] == -1
def test_code_of_object_instance_with_call() -> None: