diff --git a/src/_zkapauthorizer/tests/test_plugin.py b/src/_zkapauthorizer/tests/test_plugin.py index 34025969f5f73f34475933f93a8e2d39705e7f8c..5de8f4121bcbca70f1c1719080fbfdd70dc90093 100644 --- a/src/_zkapauthorizer/tests/test_plugin.py +++ b/src/_zkapauthorizer/tests/test_plugin.py @@ -400,6 +400,11 @@ class ClientPluginTests(TestCase): # On Tahoe-LAFS <1.16, the config is written as bytes. # On Tahoe-LAFS >=1.16, the config is written as unicode. # + # So we'll use `StringIO.StringIO` (not `io.StringIO`) here - which + # will allow either type (it will also implicitly decode bytes to + # unicode if we mix them, though I don't think that should happen + # here). + # # After support for Tahoe <1.16 support is dropped we probably want to # switch to an io.StringIO here. config_text = StringIO()