Skip to content

Commit eea194e

Browse files
authored
---
yaml --- r: 318399 b: refs/heads/master-rebranch c: ef957ca h: refs/heads/master i: 318397: bb7f876 318395: fc7a3bc 318391: db6ef61 318383: 8406efe 318367: 087a799 318335: 113fbb2
1 parent 3a61b38 commit eea194e

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: 9ec0a6cf8039bd87c1a27235f91085be36ce3f9a
1460+
refs/heads/master-rebranch: ef957ca28e77326aef34f4df6bea201f2f1bf67c

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)