index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | test/pacman/pmtest.py | 3 |
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) |