Show More
@@ -990,7 +990,12 b' class Test(unittest.TestCase):' | |||||
990 | # the intermediate 'compile' step help with debugging |
|
990 | # the intermediate 'compile' step help with debugging | |
991 | code = compile(source.read(), replacementfile, 'exec') |
|
991 | code = compile(source.read(), replacementfile, 'exec') | |
992 | exec(code, data) |
|
992 | exec(code, data) | |
993 |
|
|
993 | for value in data.get('substitutions', ()): | |
|
994 | if len(value) != 2: | |||
|
995 | msg = 'malformatted substitution in %s: %r' | |||
|
996 | msg %= (replacementfile, value) | |||
|
997 | raise ValueError(msg) | |||
|
998 | r.append(value) | |||
994 | return r |
|
999 | return r | |
995 |
|
1000 | |||
996 | def _escapepath(self, p): |
|
1001 | def _escapepath(self, p): |
General Comments 0
You need to be logged in to leave comments.
Login now