summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-02-16 22:58:21 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2020-02-16 22:58:21 +0100
commit3ed40970e4799448535cf436d3f51d6ed9ac550e (patch)
tree95c408aa9f5d5aeb66155c3ed97d4ab33dab921b
parent776016fc8aaeb749762122a0866be3517a6e7a7f (diff)
downloadpsutil-3ed40970e4799448535cf436d3f51d6ed9ac550e.tar.gz
#1053 fix syntax incompatible with py2.6
-rwxr-xr-xpsutil/tests/test_posix.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py
index 83c1b22b..a96b310f 100755
--- a/psutil/tests/test_posix.py
+++ b/psutil/tests/test_posix.py
@@ -58,8 +58,7 @@ def ps(fmt, pid=None):
cmd.append('ax')
if SUNOS:
- fmt_map = {'command', 'comm',
- 'start', 'stime'}
+ fmt_map = set(('command', 'comm', 'start', 'stime'))
fmt = fmt_map.get(fmt, fmt)
cmd.extend(['-o', fmt])