Skip to content

Commit ef29ce2

Browse files
authored
[test] Remove unused Py2CalledProcessError. NFC (#8130)
This should probably have been removed in #2270.
1 parent def60a9 commit ef29ce2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

scripts/test/shared.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,6 @@ def remove_readonly_and_try_again(func, path, exc_info):
302302
pass
303303

304304

305-
# This is a workaround for https://bugs.python.org/issue9400
306-
class Py2CalledProcessError(subprocess.CalledProcessError):
307-
def __init__(self, returncode, cmd, output=None, stderr=None):
308-
super(Exception, self).__init__(returncode, cmd, output, stderr)
309-
self.returncode = returncode
310-
self.cmd = cmd
311-
self.output = output
312-
self.stderr = stderr
313-
314-
315305
def run_process(cmd, check=True, input=None, decode_output=True, *args, **kw):
316306
if input and type(input) is str:
317307
input = bytes(input, 'utf-8')

0 commit comments

Comments
 (0)