Skip to content

1.0.2: Testing fails on illumos #7

@mtelka

Description

@mtelka

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:

  1. wget https://files.pythonhosted.org/packages/source/p/pytest-system-statistics/pytest-system-statistics-1.0.2.tar.gz
  2. gtar xf pytest-system-statistics-1.0.2.tar.gz
  3. cd pytest-system-statistics-1.0.2
  4. PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTEST_PLUGINS="skip-markers,system-statistics" pytest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions