We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20fbc35 commit bcd2deaCopy full SHA for bcd2dea
python/tests/sanity_test.py
@@ -5,16 +5,20 @@
5
import libcpuid
6
from libcpuid.info import CPUInfo, SystemInfo
7
from libcpuid.raw import CPURawData, CPURawDataArray
8
+from libcpuid.errors import CLibraryError
9
10
11
def test_cpu_name_in_vendor_list():
12
"""
13
Checks that the current CPU codename appears
14
in the list of all CPUs of its vendor.
15
- info = CPUInfo.from_current_cpu()
16
- cpulist = libcpuid.get_cpu_list(info.vendor)
17
- assert info.cpu_codename in cpulist
+ try:
+ info = CPUInfo.from_current_cpu()
18
+ cpulist = libcpuid.get_cpu_list(info.vendor)
19
+ assert info.cpu_codename in cpulist
20
+ except CLibraryError:
21
+ pass
22
23
24
def test_serialization():
0 commit comments