Skip to content

Commit 88f2152

Browse files
authored
---
yaml --- r: 346866 b: refs/heads/master c: ef957ca h: refs/heads/master
1 parent 0e86caa commit 88f2152

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9ec0a6cf8039bd87c1a27235f91085be36ce3f9a
2+
refs/heads/master: ef957ca28e77326aef34f4df6bea201f2f1bf67c
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/utils/round-trip-syntax-test

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@ class RoundTripTask(object):
7676

7777
contents = ''.join(map(lambda l: l.decode('utf-8', errors='replace'),
7878
open(self.input_filename).readlines()))
79-
lines = difflib.unified_diff(contents,
80-
self.stdout.decode('utf-8',
81-
errors='replace'),
79+
stdout_contents = self.stdout.decode('utf-8', errors='replace')
80+
81+
if contents == stdout_contents:
82+
return None
83+
84+
lines = difflib.unified_diff(contents, stdout_contents,
8285
fromfile=self.input_filename,
8386
tofile='-')
8487
diff = '\n'.join(line for line in lines)

0 commit comments

Comments
 (0)