tests/test-commandserver.t
changeset 39951 a339b5e0d7c6
parent 39489 f1186c292d03
child 40354 f9f2faf25fc4
--- a/tests/test-commandserver.t	Mon Oct 01 23:07:19 2018 -0400
+++ b/tests/test-commandserver.t	Mon Oct 01 23:26:24 2018 -0400
@@ -298,7 +298,7 @@
   ... 
   ...     runcommand(server, ['bookmarks', 'bm3'])
   ...     f = open('a', 'ab')
-  ...     f.write('a\n')
+  ...     f.write('a\n') and None
   ...     f.close()
   ...     runcommand(server, ['commit', '-Amm'])
   ...     runcommand(server, ['bookmarks'])
@@ -391,7 +391,7 @@
   ...     readchannel(server)
   ...     runcommand(server, ['commit', '-Am.'])
   ...     f = open('ignored-file', 'ab')
-  ...     f.write('')
+  ...     f.write('') and None
   ...     f.close()
   ...     f = open('.hgignore', 'ab')
   ...     f.write('ignored-file')
@@ -418,7 +418,7 @@
   ...     for i in range(5, 7):
   ...         f = open('a', 'ab')
   ...         f.seek(0, os.SEEK_END)
-  ...         f.write('a\n')
+  ...         f.write('a\n') and None
   ...         f.close()
   ...         os.system('hg commit -Aqm%d' % i)
   ...     # new commits should be listed as draft revisions
@@ -463,7 +463,7 @@
   ...     # create new head, 5:731265503d86
   ...     runcommand(server, ['update', '-C', '0'])
   ...     f = open('a', 'ab')
-  ...     f.write('a\n')
+  ...     f.write('a\n') and None
   ...     f.close()
   ...     runcommand(server, ['commit', '-Am.', 'a'])
   ...     runcommand(server, ['log', '-Gq'])