Skip to content

Commit 638533c

Browse files
committed
Fix test for pip GH workflow
1 parent c9a152a commit 638533c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/pip.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: pip install --verbose .[test]
4646

4747
- name: Test import
48-
run: python -c "import pylibbpf; print('Import successful')"
48+
run: python -I -c "import pylibbpf; print('Import successful')"
4949

5050
- name: Test
51-
run: python -m pytest -v
51+
run: python -I -m pytest -v

tests/test_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33

44
def test_main():
5-
assert m.__version__ == "0.0.5"
6-
prog = m.BpfObject("tests/execve2.o")
5+
assert m.__version__ == "0.0.6"
6+
prog = m.BpfObject("tests/execve2.o", structs={})
77
print(prog)

0 commit comments

Comments
 (0)