changeset 40356:756e9b1084fd

py3: import StringIO from test utility to test-commandserver.t
author Yuya Nishihara <yuya@tcha.org>
date Tue, 16 Oct 2018 07:52:56 +0200
parents 77ab5fbdbbf0
children efbf7de09d2a
files tests/test-commandserver.t
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-commandserver.t	Tue Oct 16 07:38:31 2018 +0200
+++ b/tests/test-commandserver.t	Tue Oct 16 07:52:56 2018 +0200
@@ -153,15 +153,14 @@
 
 check that "histedit --commands=-" can read rules from the input channel:
 
-  >>> import cStringIO
-  >>> from hgclient import check, readchannel, runcommand
+  >>> from hgclient import check, readchannel, runcommand, stringio
   >>> @check
   ... def serverinput(server):
   ...     readchannel(server)
   ...     rules = b'pick eff892de26ec\n'
   ...     runcommand(server, [b'histedit', b'0', b'--commands=-',
   ...                         b'--config', b'extensions.histedit='],
-  ...                input=cStringIO.StringIO(rules))
+  ...                input=stringio(rules))
   *** runcommand histedit 0 --commands=- --config extensions.histedit=
 
 check that --cwd doesn't persist between requests: