diff options
Diffstat (limited to 'tests/isolated/subprocess_exception_identity.py')
-rw-r--r-- | tests/isolated/subprocess_exception_identity.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/isolated/subprocess_exception_identity.py b/tests/isolated/subprocess_exception_identity.py new file mode 100644 index 0000000..24fdadd --- /dev/null +++ b/tests/isolated/subprocess_exception_identity.py @@ -0,0 +1,14 @@ +__test__ = False + +if __name__ == '__main__': + import subprocess as original + from eventlet.green import subprocess as green + + cases = ( + 'CalledProcessError', + 'TimeoutExpired', + ) + for c in cases: + if hasattr(original, c): + assert getattr(green, c) is getattr(original, c), c + print('pass') |