diff tests/test-symlink-placeholder.t @ 38080:0a10f142299d

py3: suppress the output from .write() calls in few tests Differential Revision: https://phab.mercurial-scm.org/D3604
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 18:43:13 +0530
parents 7a9cbb315d84
children 8b7123c8947b
line wrap: on
line diff
--- a/tests/test-symlink-placeholder.t	Sat May 19 18:42:18 2018 +0530
+++ b/tests/test-symlink-placeholder.t	Sat May 19 18:43:13 2018 +0530
@@ -50,13 +50,13 @@
 
 Write binary data to the placeholder:
 
-  >>> open('b', 'w').write('this is a binary\0')
+  >>> open('b', 'w').write('this is a binary\0') and None
   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
   ignoring suspect symlink placeholder "b"
 
 Write a long string to the placeholder:
 
-  >>> open('b', 'w').write('this' * 1000)
+  >>> open('b', 'w').write('this' * 1000) and None
   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
   ignoring suspect symlink placeholder "b"
 
@@ -68,7 +68,7 @@
 
 Write a valid string to the placeholder:
 
-  >>> open('b', 'w').write('this')
+  >>> open('b', 'w').write('this') and None
   $ hg --config extensions.n=$TESTTMP/nolink.py st --debug
   M b
   $ hg --config extensions.n=$TESTTMP/nolink.py ci -m1