summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_application.py
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-11-16 20:37:01 +0300
committerMax Romanov <max.romanov@nginx.com>2020-11-16 20:37:01 +0300
commit567f0a7b3049f4532524ac35cb232cbeedb868bf (patch)
tree8a2eb4f43b5750c6e4fa47d7278a0b2e6e9508ce /test/test_python_application.py
parent6d2b60ff3e6f905b81c6d2fc6595b39250e3a586 (diff)
downloadunit-567f0a7b3049f4532524ac35cb232cbeedb868bf.tar.gz
unit-567f0a7b3049f4532524ac35cb232cbeedb868bf.tar.bz2
Tests: fixing tests interrupt in terminal.
KeyboardInterrupt re-raised.
Diffstat (limited to 'test/test_python_application.py')
-rw-r--r--test/test_python_application.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_python_application.py b/test/test_python_application.py
index 871d8bc0..83b0c8f4 100644
--- a/test/test_python_application.py
+++ b/test/test_python_application.py
@@ -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: