Remove unused pytester.getdecoded (#6805)

Last usage was removed in 22dc47d9f.
This commit is contained in:
Daniel Hahler
2020-02-24 14:33:26 +01:00
committed by GitHub
parent bfd0d18371
commit be23aeb989

View File

@@ -25,7 +25,6 @@ import py
import pytest
from _pytest._code import Source
from _pytest._io.saferepr import saferepr
from _pytest.capture import MultiCapture
from _pytest.capture import SysCapture
from _pytest.compat import TYPE_CHECKING
@@ -1283,15 +1282,6 @@ class Testdir:
return child
def getdecoded(out):
try:
return out.decode("utf-8")
except UnicodeDecodeError:
return "INTERNAL not-utf8-decodeable, truncated string:\n{}".format(
saferepr(out)
)
class LineComp:
def __init__(self):
self.stringio = StringIO()