From 095f81041c36e52153220d54923468f56cbbc2ec Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Sat, 21 Dec 2024 02:14:26 +0100 Subject: [PATCH] remove some now useless six.ensure_text --- src/allmydata/test/cli/test_status.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/allmydata/test/cli/test_status.py b/src/allmydata/test/cli/test_status.py index a3921b442..081afa4aa 100644 --- a/src/allmydata/test/cli/test_status.py +++ b/src/allmydata/test/cli/test_status.py @@ -2,8 +2,6 @@ Ported to Python 3. """ -from six import ensure_text - import os import tempfile from io import BytesIO, StringIO @@ -139,18 +137,18 @@ class CommandStatus(unittest.TestCase): def test_no_operations(self): values = [ - StringIO(ensure_text(json.dumps({ + StringIO(json.dumps({ "active": [], "recent": [], - }))), - StringIO(ensure_text(json.dumps({ + })), + StringIO(json.dumps({ "counters": { "bytes_downloaded": 0, }, "stats": { "node.uptime": 0, } - }))), + })), ] def do_http(*args, **kw): return values.pop(0)