-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I'm running tests for version 1.0.2 on OpenIndiana (an illumos distro) and I see this failure:
======================================================= test session starts ========================================================
platform sunos5 -- Python 3.9.20, pytest-8.3.3, pluggy-1.5.0
rootdir: /tmp/test/pytest-system-statistics-1.0.2
configfile: pytest.ini
testpaths: tests/
plugins: skip-markers-1.5.2, system-statistics-1.0.2
collected 7 items
tests/functional/test_syststats.py ....F.. [100%]
============================================================= FAILURES =============================================================
_____________________________________________________ test_basic_sys_stats_uss _____________________________________________________
pytester = <Pytester PosixPath('/tmp/pytest-of-marcel/pytest-6/test_basic_sys_stats_uss0')>
@pytest.mark.skip_on_freebsd
def test_basic_sys_stats_uss(pytester):
pytester.makepyfile(
"""
def test_one():
assert True
"""
)
res = pytester.runpytest("-vv", "--sys-stats", "--sys-stats-uss-mem")
res.assert_outcomes(passed=1)
> res.stdout.fnmatch_lines(
[
"* PASSED*",
"* Processes Statistics *",
"* System - CPU: * % MEM: * % (Virtual Memory)*",
"* Test Suite Run - CPU: * % MEM: * % (USS)*",
"* 1 passed in *",
]
)
E Failed: nomatch: '* PASSED*'
E and: '============================= test session starts =============================='
E and: 'platform sunos5 -- Python 3.9.20, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.9'
E and: 'cachedir: .pytest_cache'
E and: 'rootdir: /tmp/pytest-of-marcel/pytest-6/test_basic_sys_stats_uss0'
E and: 'plugins: skip-markers-1.5.2, system-statistics-1.0.2'
E and: 'collecting ... collected 1 item'
E and: ''
E fnmatch: '* PASSED*'
E with: 'test_basic_sys_stats_uss.py::test_one PASSED [100%]'
E fnmatch: '* Processes Statistics *'
E with: '----------------------------- Processes Statistics -----------------------------'
E fnmatch: '* System - CPU: * % MEM: * % (Virtual Memory)*'
E with: ' ........... System - CPU: 29.80 % MEM: 79.50 % (Virtual Memory)'
E nomatch: '* Test Suite Run - CPU: * % MEM: * % (USS)*'
E and: ' ... Test Suite Run - CPU: 0.00 % MEM: 0.56 % (RSS)'
E and: ''
E and: '============================== 1 passed in 0.04s ==============================='
E remains unmatched: '* Test Suite Run - CPU: * % MEM: * % (USS)*'
/tmp/test/pytest-system-statistics-1.0.2/tests/functional/test_syststats.py:108: Failed
------------------------------------------------------- Captured stdout call -------------------------------------------------------
============================= test session starts ==============================
platform sunos5 -- Python 3.9.20, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.9
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-marcel/pytest-6/test_basic_sys_stats_uss0
plugins: skip-markers-1.5.2, system-statistics-1.0.2
collecting ... collected 1 item
test_basic_sys_stats_uss.py::test_one PASSED [100%]
----------------------------- Processes Statistics -----------------------------
........... System - CPU: 29.80 % MEM: 79.50 % (Virtual Memory)
... Test Suite Run - CPU: 0.00 % MEM: 0.56 % (RSS)
============================== 1 passed in 0.04s ===============================
===================================================== short test summary info ======================================================
FAILED tests/functional/test_syststats.py::test_basic_sys_stats_uss - Failed: nomatch: '* PASSED*'
=================================================== 1 failed, 6 passed in 3.61s ====================================================
Steps to reproduce:
wget https://files.pythonhosted.org/packages/source/p/pytest-system-statistics/pytest-system-statistics-1.0.2.tar.gzgtar xf pytest-system-statistics-1.0.2.tar.gzcd pytest-system-statistics-1.0.2PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTEST_PLUGINS="skip-markers,system-statistics" pytest
Metadata
Metadata
Assignees
Labels
No labels