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 /psutil | |
parent | 72906618b6353ef7b47582d74b98aff61b0d577e (diff) | |
download | psutil-5c52826e7eac9648006392f5d491f6fdf6ff50a8.tar.gz |
skip who CLI related test if necessary
Diffstat (limited to 'psutil')
-rwxr-xr-x | psutil/tests/test_posix.py | 3 |
1 files changed, 2 insertions, 1 deletions
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( |