From ce481836f31142b939f4b93a6eba90630ba354fd Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 13 Dec 2015 11:00:02 -0500 Subject: caught is a better name here --- setuptools/tests/test_sandbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setuptools/tests/test_sandbox.py b/setuptools/tests/test_sandbox.py index a54c2fa0..40bd2ebe 100644 --- a/setuptools/tests/test_sandbox.py +++ b/setuptools/tests/test_sandbox.py @@ -111,10 +111,10 @@ class TestExceptionSaver: An unpickleable exception (not in globals). """ - with pytest.raises(setuptools.sandbox.UnpickleableException) as exc: + with pytest.raises(setuptools.sandbox.UnpickleableException) as caught: with setuptools.sandbox.save_modules(): setuptools.sandbox.hide_setuptools() raise ExceptionUnderTest() - msg, = exc.value.args + msg, = caught.value.args assert msg == 'ExceptionUnderTest()' -- cgit v1.2.1