test rpc: remove unnecessary import, close fd

Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Adrian Reber 2018-06-29 12:50:07 +00:00 committed by Andrei Vagin
parent 0a859275ef
commit 35fbc373a9

View file

@ -5,12 +5,11 @@
# but the bash version on Ubuntu has probably the following bug:
# https://lists.gnu.org/archive/html/bug-bash/2017-07/msg00039.html
import os
import sys
f=open(sys.argv[1])
f = open(sys.argv[1])
r = f.read(1)
f.close()
if r == '\0':
sys.exit(0)