From a33a5ba6ed5be3affc10fd0e789799b7490d2053 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 14 Jan 2015 21:38:25 -0500 Subject: Adding test for non-exceptional condition. --- setuptools/tests/test_sandbox.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'setuptools/tests/test_sandbox.py') 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() -- cgit v1.2.3