# HG changeset patch # User Yuya Nishihara # Date 1531044714 -32400 # Node ID 15622e72307db76f1ea96de404e353f8b4c62ac5 # Parent 85c74c5a159038925c7d410c6b52b75601e0dafe py3: suppress write() result and close file in test-bookmarks-pushpull.t diff -r 85c74c5a1590 -r 15622e72307d contrib/python3-whitelist --- a/contrib/python3-whitelist Sun Jul 08 18:58:11 2018 +0900 +++ b/contrib/python3-whitelist Sun Jul 08 19:11:54 2018 +0900 @@ -24,6 +24,7 @@ test-blackbox.t test-bookmarks-current.t test-bookmarks-merge.t +test-bookmarks-pushpull.t test-bookmarks-rebase.t test-bookmarks-strip.t test-bookmarks.t diff -r 85c74c5a1590 -r 15622e72307d tests/test-bookmarks-pushpull.t --- a/tests/test-bookmarks-pushpull.t Sun Jul 08 18:58:11 2018 +0900 +++ b/tests/test-bookmarks-pushpull.t Sun Jul 08 19:11:54 2018 +0900 @@ -1034,7 +1034,8 @@ =============================================== #if b2-binary - >>> open('longname', 'w').write('wat' * 100) + >>> with open('longname', 'w') as f: + ... f.write('wat' * 100) and None $ hg book `cat longname` $ hg push -B `cat longname` ../unchanged-b pushing to ../unchanged-b