summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/pacman/pmtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py
index b343d55f..d12a5ed2 100644
--- a/test/pacman/pmtest.py
+++ b/test/pacman/pmtest.py
@@ -100,7 +100,8 @@ class pmtest(object):
if os.path.isfile(self.name):
# all tests expect this to be available
from pmpkg import pmpkg
- execfile(self.name)
+ with open(self.name) as input:
+ exec(input.read(),locals())
else:
raise IOError("file %s does not exist!" % self.name)