From 638533c19a2cf5155f15d0b60c2e41340cbcc8da Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Mon, 20 Oct 2025 04:27:30 +0530 Subject: [PATCH] Fix test for pip GH workflow --- .github/workflows/pip.yml | 4 ++-- tests/test_basic.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index 467cc4c..f4f5ada 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -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 diff --git a/tests/test_basic.py b/tests/test_basic.py index 1dedd62..31ac054 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -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)