diff tests/test-bookmarks-pushpull.t @ 38606:15622e72307d

py3: suppress write() result and close file in test-bookmarks-pushpull.t
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Jul 2018 19:11:54 +0900
parents 2090044a288d
children 38dfd308fe9d
line wrap: on
line diff
--- 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