Fix test for pip GH workflow

This commit is contained in:
Pragyansh Chaturvedi
2025-10-20 04:27:30 +05:30
parent c9a152adc3
commit 638533c19a
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ jobs:
run: pip install --verbose .[test]
- name: Test import
run: python -c "import pylibbpf; print('Import successful')"
run: python -I -c "import pylibbpf; print('Import successful')"
- name: Test
run: python -m pytest -v
run: python -I -m pytest -v

View File

@ -2,6 +2,6 @@ import pylibbpf as m
def test_main():
assert m.__version__ == "0.0.5"
prog = m.BpfObject("tests/execve2.o")
assert m.__version__ == "0.0.6"
prog = m.BpfObject("tests/execve2.o", structs={})
print(prog)