diff --git a/tests/hwsim/test_fst_config.py b/tests/hwsim/test_fst_config.py index 0c0107cb2..d497819bd 100644 --- a/tests/hwsim/test_fst_config.py +++ b/tests/hwsim/test_fst_config.py @@ -236,7 +236,7 @@ class FstLauncher: pid = -1 try: for i in range(3): - pf = file(pidfile, 'r') + pf = open(pidfile, 'r') pidtxt = pf.read().strip() self.logger.debug("kill_pid: %s: '%s'" % (pidfile, pidtxt)) pf.close()