File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -120,12 +120,6 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
120
120
)
121
121
122
122
if contents != pretty_contents :
123
- print (
124
- 'File {} is not pretty-formatted' .format (json_file ),
125
- file = sys .stderr ,
126
- )
127
- sys .stderr .flush ()
128
-
129
123
if args .autofix :
130
124
_autofix (json_file , pretty_contents )
131
125
else :
Original file line number Diff line number Diff line change @@ -131,11 +131,9 @@ def test_diffing_output(capsys):
131
131
+ "foo": "bar"
132
132
}}
133
133
''' .format (a , b )
134
- expected_err = 'File {} is not pretty-formatted\n ' .format (resource_path )
135
-
136
134
actual_retval = main ([resource_path ])
137
135
actual_out , actual_err = capsys .readouterr ()
138
136
139
137
assert actual_retval == expected_retval
140
138
assert actual_out == expected_out
141
- assert actual_err == expected_err
139
+ assert actual_err == ''
You can’t perform that action at this time.
0 commit comments