Skip to content

Commit

Permalink
tests: Update for Python 3.13
Browse files Browse the repository at this point in the history
- Ensure that Python 3.13 is discovered and tested automatically when
  available.
- Skip the PyInstaller test on 3.13, since PyInstaller doesn't yet
  support Python 3.13.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
  • Loading branch information
godlygeek authored and pablogsal committed Jun 5, 2024
1 parent 8aa3290 commit c79a230
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/test_relocatable_cores.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
from pathlib import Path

import pytest
from pytest import LogCaptureFixture

from pystack.engine import CoreFileAnalyzer
Expand All @@ -17,6 +18,10 @@
TEST_MULTIPLE_THREADS_FILE = Path(__file__).parent / "multiple_thread_program.py"


@pytest.mark.skipif(
sys.version_info > (3, 13),
reason="PyInstaller doesn't support Python 3.13 yet",
)
def test_single_thread_stack_for_relocated_core(
tmpdir: Path, caplog: LogCaptureFixture
) -> None:
Expand Down
1 change: 1 addition & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
PythonVersion = Tuple[Tuple[int, int], pathlib.Path]

ALL_VERSIONS = [
((3, 13), "python3.13"),
((3, 12), "python3.12"),
((3, 11), "python3.11"),
((3, 10), "python3.10"),
Expand Down

0 comments on commit c79a230

Please sign in to comment.