Skip to content

Commit 84059d8

Browse files
committed
Use recently-released xdis
1 parent e28deda commit 84059d8

7 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip
2525
# Until the next xdis release
26-
pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
26+
# pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
2727
# Until the next pytracer release
2828
pip install git+https://github.com/rocky/pytracer#egg=tracer
2929
# Until the next pyficache release

.github/workflows/ubuntu-prompt-toolkit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
# Until the next xdis release
25-
pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
25+
# pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
2626
# Until the next pytracer release
2727
# pip install git+https://github.com/rocky/pytracer#egg=tracer
2828
# Until the next pyficache release

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
python -m pip install --upgrade pip
2424
# Until the next xdis release
25-
pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
25+
# pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
2626
# Until the next pytracer release
2727
# pip install git+https://github.com/rocky/pytracer#egg=tracer
2828
# Until the next pyficache release

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip
2525
# Until the next xdis release
26-
pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
26+
# pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
2727
# Until the next pytracer release
2828
pip install git+https://github.com/rocky/pytracer#egg=tracer
2929
# Until the next pyficache release

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description = "GDB-like Python Debugger in the Trepan family"
1515
dependencies = [
1616
"columnize >= 0.3.10",
1717
"pyficache > 2.3.5",
18-
"xdis >= 6.1.1,<6.2.0",
18+
"xdis >= 6.1.5,<6.2.0",
1919
"Pygments >= 2.2.0",
2020
"spark_parser >= 1.8.9, <1.9.2",
2121
"tracer > 1.9.0",

test/unit/lib/test_lib_bytecode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env python3
22
"""Unit test for trepan.lib.bytecode"""
33
import inspect
4+
import platform
5+
import pytest
46

57
from trepan.lib.bytecode import is_def_stmt, op_at_frame, stmt_contains_opcode
68

@@ -13,6 +15,8 @@ def test_contains_make_function():
1315
return
1416

1517

18+
@pytest.mark.skipif(platform.python_implementation() == "GraalVM",
19+
reason="op_at_frame() doesn't work for Graal (JVM) bytecode")
1620
def test_op_at_frame():
1721
frame = inspect.currentframe()
1822
call_opcode = "CALL"

test/unit/lib/test_lib_stack.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Unit test for "trepan.frame" """
22
import inspect
3+
import pytest
4+
import platform
35

46
from trepan.lib.stack import count_frames, is_eval_or_exec_stmt
57

@@ -13,6 +15,8 @@ def test_count_frames():
1315
return
1416

1517

18+
@pytest.mark.skipif(platform.python_implementation() == "GraalVM",
19+
reason="exec/eval detection doesn't work for Graal (JVM) bytecode")
1620
def test_stack_misc():
1721
f = inspect.currentframe()
1822
# assert "test_stack_misc" == get_call_function_name(f))

0 commit comments

Comments
 (0)