##// END OF EJS Templates
py3: import StringIO from test utility to test-commandserver.t
Yuya Nishihara -
r40392:756e9b10 default
parent child Browse files
Show More
@@ -153,15 +153,14 b' check strict parsing of early options:'
153 153
154 154 check that "histedit --commands=-" can read rules from the input channel:
155 155
156 >>> import cStringIO
157 >>> from hgclient import check, readchannel, runcommand
156 >>> from hgclient import check, readchannel, runcommand, stringio
158 157 >>> @check
159 158 ... def serverinput(server):
160 159 ... readchannel(server)
161 160 ... rules = b'pick eff892de26ec\n'
162 161 ... runcommand(server, [b'histedit', b'0', b'--commands=-',
163 162 ... b'--config', b'extensions.histedit='],
164 ... input=cStringIO.StringIO(rules))
163 ... input=stringio(rules))
165 164 *** runcommand histedit 0 --commands=- --config extensions.histedit=
166 165
167 166 check that --cwd doesn't persist between requests:
General Comments 0
You need to be logged in to leave comments. Login now