Skip to content

Commit 4dd06e8

Browse files
author
paskozdilar
committed
Replace exit with sys.exit
1 parent 0329adb commit 4dd06e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_rpc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python3
22

33
import multiprocessing
4+
import sys
45
import tempfile
56
import time
67
from zrpc.server import Server, rpc_method
@@ -50,7 +51,7 @@ class MockServer(Server):
5051
def mock_method(self, payload):
5152
if not crash_event.wait(0):
5253
crash_event.set()
53-
exit(1)
54+
sys.exit(1)
5455
else:
5556
return {'success': True}
5657

0 commit comments

Comments
 (0)