[pypy-svn] r15697 - pypy/dist/pypy/tool/pytest
hpk at codespeak.net
hpk at codespeak.net
Fri Aug 5 17:16:44 CEST 2005
Author: hpk
Date: Fri Aug 5 17:16:43 2005
New Revision: 15697
Modified:
pypy/dist/pypy/tool/pytest/result.py
Log:
a bit more care with cpuinfo as asked for by xorAxAx
Modified: pypy/dist/pypy/tool/pytest/result.py
==============================================================================
--- pypy/dist/pypy/tool/pytest/result.py (original)
+++ pypy/dist/pypy/tool/pytest/result.py Fri Aug 5 17:16:43 2005
@@ -140,8 +140,8 @@
result['python-version-info'] = sys.version_info
info = try_getcpuinfo()
if info is not None:
- result['cpu model'] = info['model name']
- result['cpu mhz'] = info['cpu mhz']
+ result['cpu model'] = info.get('model name', "unknown")
+ result['cpu mhz'] = info.get('cpu mhz', 'unknown')
#
#
#
More information about the Pypy-commit
mailing list