Turn ptyprocess errors into our own ExceptionPexpect errors
()
| 18 | |
| 19 | @contextmanager |
| 20 | def _wrap_ptyprocess_err(): |
| 21 | """Turn ptyprocess errors into our own ExceptionPexpect errors""" |
| 22 | try: |
| 23 | yield |
| 24 | except ptyprocess.PtyProcessError as e: |
| 25 | raise ExceptionPexpect(*e.args) |
| 26 | |
| 27 | PY3 = (sys.version_info[0] >= 3) |
| 28 |
no test coverage detected
searching dependent graphs…