We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e91b49 + 6215409 commit 29299e8Copy full SHA for 29299e8
utils/round-trip-syntax-test
@@ -76,9 +76,12 @@ class RoundTripTask(object):
76
77
contents = ''.join(map(lambda l: l.decode('utf-8', errors='replace'),
78
open(self.input_filename).readlines()))
79
- lines = difflib.unified_diff(contents,
80
- self.stdout.decode('utf-8',
81
- errors='replace'),
+ stdout_contents = self.stdout.decode('utf-8', errors='replace')
+
+ if contents == stdout_contents:
82
+ return None
83
84
+ lines = difflib.unified_diff(contents, stdout_contents,
85
fromfile=self.input_filename,
86
tofile='-')
87
diff = '\n'.join(line for line in lines)
0 commit comments