Skip to content

Commit bb7f876

Browse files
committed
---
yaml --- r: 318397 b: refs/heads/master-rebranch c: 4c487b7 h: refs/heads/master i: 318395: fc7a3bc
1 parent 19f68c8 commit bb7f876

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
@@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14571457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14581458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14591459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460-
refs/heads/master-rebranch: 4e3b7712f0a79dfba00a03b1c4343f14dcc13d0d
1460+
refs/heads/master-rebranch: 4c487b74583a66c3e0e8509706f2813ab227642c

branches/master-rebranch/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)