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 |
|
|
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