tests: fix test_memusage_partial_open and add psutil to CI

Run the RSS measurement in a subprocess so the fixture file is not
already in the page cache from earlier tests (which made both deltas
read as zero). Add psutil to the CI pip install so this test is not
skipped there.

Generated with the assistance of an AI coding tool.
This commit is contained in:
Bruno Postle
2026-04-10 00:30:26 +01:00
parent aa3e38aca8
commit 9bcc98aac3
2 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install xmlschema xsdata numpy lxml pytest isodate lark networkx tabulate python-dateutil shapely
pip install xmlschema xsdata numpy lxml pytest isodate lark networkx tabulate python-dateutil shapely psutil
pip install src/bcf --no-deps
pip install pytest-xdist==3.8.0