The implementation can't reliably see the encoding we're faking without this

This commit is contained in:
Jean-Paul Calderone 2020-12-07 09:06:21 -05:00
parent 8ca98bb8ca
commit 93b30d0dde

View File

@ -7,6 +7,7 @@ from allmydata.scripts.common import get_aliases
from allmydata.test.no_network import GridTestMixin
from .common import CLITestMixin
from allmydata.util.encodingutil import quote_output_u
from allmydata.util import encodingutil
# see also test_create_alias
@ -17,6 +18,8 @@ class ListAlias(GridTestMixin, CLITestMixin, unittest.TestCase):
self.basedir = self.mktemp()
self.set_up_grid(oneshare=True)
self.patch(encodingutil, "io_encoding", encoding)
rc, stdout, stderr = yield self.do_cli_unicode(
u"create-alias",
[alias],