summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--psutil/tests/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py
index 74c46e84..88e60cb7 100644
--- a/psutil/tests/__init__.py
+++ b/psutil/tests/__init__.py
@@ -1116,8 +1116,9 @@ def print_sysinfo():
# system
info['fs-encoding'] = sys.getfilesystemencoding()
- if locale.getlocale():
- info['language'] = ', '.join(locale.getlocale())
+ lang = locale.getlocale()
+ if lang:
+ info['lang'] = ', '.join(lang)
info['time'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
info['boot-time'] = datetime.datetime.fromtimestamp(
psutil.boot_time()).strftime("%Y-%m-%d %H:%M:%S")