Upgrade to Truth 1.0 (#281)

* Upgrade to Truth 1.0

Refactored fail(...) to assertWithMessage().fail().

Upgraded com.google.monitoring-client family of dependencies to 1.0.6

Also fixed bad use of io.StringIO (on binary buffer) recently introduced to
google-java-format-diff.py.
This commit is contained in:
Weimin Yu 2019-09-24 10:23:58 -04:00 committed by GitHub
parent c63a1e559b
commit 7db99e3308
89 changed files with 235 additions and 240 deletions

View file

@ -118,7 +118,7 @@ def main():
if not args.i:
with open(filename) as f:
code = f.readlines()
formatted_code = io.StringIO(stdout).readlines()
formatted_code = io.BytesIO(stdout).readlines()
diff = difflib.unified_diff(code, formatted_code,
filename, filename,
'(before formatting)', '(after formatting)')