diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2022-01-17 15:03:33 +0000 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2022-01-17 15:03:33 +0000 |
commit | 8aec7b45923991783a6842479bd1a718a940c74e (patch) | |
tree | 90e0d95dcfad1d4bb3fae2b29de4154706784d50 | |
parent | c855c242a7611bac3468f1aea625af53d5419d4b (diff) | |
download | psutil-cpu-info.tar.gz |
add FreeBSD specific test case for cpu_info() modelcpu-info
-rwxr-xr-x | psutil/tests/test_bsd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/psutil/tests/test_bsd.py b/psutil/tests/test_bsd.py index e24697c5..502aec17 100755 --- a/psutil/tests/test_bsd.py +++ b/psutil/tests/test_bsd.py @@ -477,6 +477,9 @@ class FreeBSDSystemTestCase(PsutilTestCase): # --- CPU info + def test_cpu_info_model(self): + self.assertEqual(psutil.cpu_info()["model"], sysctl("hw.model")) + @unittest.skipIf(not which('cpuid'), "cpuid cmd not available") def test_cpu_info_vendor(self): out = sh("cpuid") |