Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-09-28 21:36:20 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-09-28 21:50:38 +0300
commitcc653c9b02b34349e7896b8a4e92a5b0e69c0322 (patch)
tree5c557f563bec247e6c8a93431cd5c95bedda8dad /tests/performance
parent95fca22bfeb1d3e2edeeb71b9717e3528be14c17 (diff)
Fix potential render tests error with invalid utf-8 characters
In general should not happen, but better to report the actual error instead of the Python test code failing.
Diffstat (limited to 'tests/performance')
-rw-r--r--tests/performance/api/device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/performance/api/device.py b/tests/performance/api/device.py
index b61ae42be36..1e930a12352 100644
--- a/tests/performance/api/device.py
+++ b/tests/performance/api/device.py
@@ -11,7 +11,7 @@ def get_cpu_name() -> str:
return platform.processor()
elif platform.system() == "Darwin":
cmd = ['/usr/sbin/sysctl', "-n", "machdep.cpu.brand_string"]
- return subprocess.check_output(cmd).strip().decode('utf-8')
+ return subprocess.check_output(cmd).strip().decode('utf-8', 'ignore')
else:
with open('/proc/cpuinfo') as f:
for line in f: