##// END OF EJS Templates
run-test: drop 'execfile' usage for 'common-pattern.py' file...
Boris Feld -
r35091:1ac4c088 default
parent child Browse files
Show More
@@ -973,8 +973,11 b' class Test(unittest.TestCase):'
973
973
974 if os.path.exists(replacementfile):
974 if os.path.exists(replacementfile):
975 data = {}
975 data = {}
976 execfile(replacementfile, data)
976 with open(replacementfile, mode='rb') as source:
977 r.extend(data.get('substitutions', ()))
977 # the intermediate 'compile' step help with debugging
978 code = compile(source.read(), replacementfile, 'exec')
979 exec(code, data)
980 r.extend(data.get('substitutions', ()))
978 return r
981 return r
979
982
980 def _escapepath(self, p):
983 def _escapepath(self, p):
General Comments 0
You need to be logged in to leave comments. Login now