# HG changeset patch # User Yuya Nishihara # Date 2018-10-16 05:52:56 # Node ID 756e9b1084fd1f0cf566a4cf9f8ad7644100bfef # Parent 77ab5fbdbbf0ac0f2b18b27e3bcb6d36ba998522 py3: import StringIO from test utility to test-commandserver.t diff --git a/tests/test-commandserver.t b/tests/test-commandserver.t --- a/tests/test-commandserver.t +++ b/tests/test-commandserver.t @@ -153,15 +153,14 @@ check strict parsing of early options: 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: