mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
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:
parent
c63a1e559b
commit
7db99e3308
89 changed files with 235 additions and 240 deletions
|
@ -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)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue