(*popenargs, **kwargs)
| 125 | subprocess.CalledProcessError = CalledProcessError |
| 126 | |
| 127 | def check_call(*popenargs, **kwargs): |
| 128 | retcode = subprocess.call(*popenargs, **kwargs) |
| 129 | cmd = kwargs.get("args") |
| 130 | if cmd is None: cmd = popenargs[0] |
| 131 | if retcode: raise subprocess.CalledProcessError(retcode, cmd) |
| 132 | return retcode |
| 133 | subprocess.check_call = check_call |
| 134 | |
| 135 | # python 2.4 does not have this |
no test coverage detected