tests/isolated/subprocess_exception_identity.py
raw| 1 | __test__ = False |
| 2 | |
| 3 | if __name__ == '__main__': |
| 4 | import subprocess as original |
| 5 | from eventlet.green import subprocess as green |
| 6 | |
| 7 | cases = ( |
| 8 | 'CalledProcessError', |
| 9 | 'TimeoutExpired', |
| 10 | ) |
| 11 | for c in cases: |
| 12 | if hasattr(original, c): |
| 13 | assert getattr(green, c) is getattr(original, c), c |
| 14 | print('pass') |