summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_sandbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/tests/test_sandbox.py')
-rw-r--r--setuptools/tests/test_sandbox.py4
1 files 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()'