Restructure yield code to make it less error prone.

This commit is contained in:
Dave Halter
2017-01-07 12:43:15 +01:00
parent 1f15ee8bc7
commit d3c437e891
3 changed files with 23 additions and 18 deletions

View File

@@ -173,7 +173,7 @@ class TestCase(object):
self.show_location(completion.line, completion.column)
def show_errors(self):
print(self.traceback)
sys.stderr.write(self.traceback)
print(("Error with running Script(...).{operation}() with\n"
"\tpath: {path}\n"
"\tline: {line}\n"