diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-14 21:38:25 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-14 21:38:25 -0500 |
commit | a33a5ba6ed5be3affc10fd0e789799b7490d2053 (patch) | |
tree | 4905cce6e561a4518d39707d748f928c6dae2c9d /setuptools/tests/test_sandbox.py | |
parent | c10a38e97daf7aad2167b3b444be8542dccc652e (diff) | |
download | external_python_setuptools-a33a5ba6ed5be3affc10fd0e789799b7490d2053.tar.gz external_python_setuptools-a33a5ba6ed5be3affc10fd0e789799b7490d2053.tar.bz2 external_python_setuptools-a33a5ba6ed5be3affc10fd0e789799b7490d2053.zip |
Adding test for non-exceptional condition.
Diffstat (limited to 'setuptools/tests/test_sandbox.py')
-rw-r--r-- | setuptools/tests/test_sandbox.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/tests/test_sandbox.py b/setuptools/tests/test_sandbox.py index 33fb3329..1340cecf 100644 --- a/setuptools/tests/test_sandbox.py +++ b/setuptools/tests/test_sandbox.py @@ -82,3 +82,9 @@ class TestExceptionSaver: assert isinstance(caught.value, ValueError) assert caught.value is not orig_exc + + def test_no_exception_passes_quietly(self): + with setuptools.sandbox.ExceptionSaver() as saved_exc: + pass + + saved_exc.resume() |