Remove unused `pytester.getdecoded` (#6805)
Last usage was removed in 22dc47d9f.
			
			
This commit is contained in:
		
							parent
							
								
									bfd0d18371
								
							
						
					
					
						commit
						be23aeb989
					
				| 
						 | 
					@ -25,7 +25,6 @@ import py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import pytest
 | 
					import pytest
 | 
				
			||||||
from _pytest._code import Source
 | 
					from _pytest._code import Source
 | 
				
			||||||
from _pytest._io.saferepr import saferepr
 | 
					 | 
				
			||||||
from _pytest.capture import MultiCapture
 | 
					from _pytest.capture import MultiCapture
 | 
				
			||||||
from _pytest.capture import SysCapture
 | 
					from _pytest.capture import SysCapture
 | 
				
			||||||
from _pytest.compat import TYPE_CHECKING
 | 
					from _pytest.compat import TYPE_CHECKING
 | 
				
			||||||
| 
						 | 
					@ -1283,15 +1282,6 @@ class Testdir:
 | 
				
			||||||
        return child
 | 
					        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:
 | 
					class LineComp:
 | 
				
			||||||
    def __init__(self):
 | 
					    def __init__(self):
 | 
				
			||||||
        self.stringio = StringIO()
 | 
					        self.stringio = StringIO()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue