Tests: fixing tests interrupt in terminal.

KeyboardInterrupt re-raised.
This commit is contained in:
Max Romanov
2020-11-16 20:37:01 +03:00
parent 6d2b60ff3e
commit 567f0a7b30
10 changed files with 52 additions and 9 deletions

View File

@@ -730,7 +730,7 @@ last line: 987654321
try:
group_id = grp.getgrnam(group).gr_gid
except:
except KeyError:
group = 'nogroup'
group_id = grp.getgrnam(group).gr_gid
@@ -775,7 +775,7 @@ last line: 987654321
try:
grp.getgrnam(group)
group = True
except:
except KeyError:
group = False
if group: