mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-14 23:12:08 +00:00
remove some now useless six.ensure_text
This commit is contained in:
parent
f9a65f82c0
commit
095f81041c
@ -2,8 +2,6 @@
|
|||||||
Ported to Python 3.
|
Ported to Python 3.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from six import ensure_text
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
from io import BytesIO, StringIO
|
from io import BytesIO, StringIO
|
||||||
@ -139,18 +137,18 @@ class CommandStatus(unittest.TestCase):
|
|||||||
|
|
||||||
def test_no_operations(self):
|
def test_no_operations(self):
|
||||||
values = [
|
values = [
|
||||||
StringIO(ensure_text(json.dumps({
|
StringIO(json.dumps({
|
||||||
"active": [],
|
"active": [],
|
||||||
"recent": [],
|
"recent": [],
|
||||||
}))),
|
})),
|
||||||
StringIO(ensure_text(json.dumps({
|
StringIO(json.dumps({
|
||||||
"counters": {
|
"counters": {
|
||||||
"bytes_downloaded": 0,
|
"bytes_downloaded": 0,
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
"node.uptime": 0,
|
"node.uptime": 0,
|
||||||
}
|
}
|
||||||
}))),
|
})),
|
||||||
]
|
]
|
||||||
def do_http(*args, **kw):
|
def do_http(*args, **kw):
|
||||||
return values.pop(0)
|
return values.pop(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user