diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-05-02 13:01:20 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2023-05-02 13:01:20 +0200 |
commit | 5c52826e7eac9648006392f5d491f6fdf6ff50a8 (patch) | |
tree | 7e92d393ef249440628388ec7b700eecf6651264 | |
parent | 72906618b6353ef7b47582d74b98aff61b0d577e (diff) | |
download | psutil-5c52826e7eac9648006392f5d491f6fdf6ff50a8.tar.gz |
skip who CLI related test if necessary
-rw-r--r-- | README.rst | 4 | ||||
-rwxr-xr-x | psutil/tests/test_posix.py | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,6 @@ | |downloads| |stars| |forks| |contributors| |coverage| -| |version| |py-versions| |packages| |license| -| |github-actions-wheels| |github-actions-bsd| |appveyor| |doc| |twitter| |tidelift| +| |version| |py-versions| |packages| |license| |twitter| |tidelift| +| |github-actions-wheels| |github-actions-bsd| |appveyor| |doc| .. |downloads| image:: https://img.shields.io/pypi/dm/psutil.svg :target: https://pepy.tech/project/psutil diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py index c789ee87..fe6936de 100755 --- a/psutil/tests/test_posix.py +++ b/psutil/tests/test_posix.py @@ -378,8 +378,9 @@ class TestSystemAPIs(PsutilTestCase): started = [x.capitalize() for x in started] if not tstamp: - raise ValueError( + raise unittest.SkipTest( "cannot interpret tstamp in who output\n%s" % (out)) + with self.subTest(psutil=psutil.users(), who=out): for idx, u in enumerate(psutil.users()): psutil_value = datetime.datetime.fromtimestamp( |