tests/test-subrepo-missing.t
changeset 37584 fd0e6678ba0f
parent 36018 1c322658f43e
child 39489 f1186c292d03
--- a/tests/test-subrepo-missing.t	Thu Apr 12 16:52:32 2018 +0530
+++ b/tests/test-subrepo-missing.t	Thu Apr 12 08:06:39 2018 -0700
@@ -14,7 +14,7 @@
 
 ignore blanklines in .hgsubstate
 
-  >>> open('.hgsubstate', 'wb').write(b'\n\n   \t \n   \n')
+  >>> open('.hgsubstate', 'wb').write(b'\n\n   \t \n   \n') and None
   $ hg st --subrepos
   M .hgsubstate
   $ hg revert -qC .hgsubstate
@@ -22,7 +22,7 @@
 abort more gracefully on .hgsubstate parsing error
 
   $ cp .hgsubstate .hgsubstate.old
-  >>> open('.hgsubstate', 'wb').write(b'\ninvalid')
+  >>> open('.hgsubstate', 'wb').write(b'\ninvalid') and None
   $ hg st --subrepos --cwd $TESTTMP -R $TESTTMP/repo
   abort: invalid subrepository revision specifier in 'repo/.hgsubstate' line 2
   [255]