Skip to content

Commit be23aeb

Browse files
authored
Remove unused pytester.getdecoded (#6805)
Last usage was removed in 22dc47d.
1 parent bfd0d18 commit be23aeb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/_pytest/pytester.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
import pytest
2727
from _pytest._code import Source
28-
from _pytest._io.saferepr import saferepr
2928
from _pytest.capture import MultiCapture
3029
from _pytest.capture import SysCapture
3130
from _pytest.compat import TYPE_CHECKING
@@ -1283,15 +1282,6 @@ def spawn(self, cmd: str, expect_timeout: float = 10.0) -> "pexpect.spawn":
12831282
return child
12841283

12851284

1286-
def getdecoded(out):
1287-
try:
1288-
return out.decode("utf-8")
1289-
except UnicodeDecodeError:
1290-
return "INTERNAL not-utf8-decodeable, truncated string:\n{}".format(
1291-
saferepr(out)
1292-
)
1293-
1294-
12951285
class LineComp:
12961286
def __init__(self):
12971287
self.stringio = StringIO()

0 commit comments

Comments
 (0)