aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_sandbox.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-13 11:00:02 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-13 11:00:02 -0500
commitce481836f31142b939f4b93a6eba90630ba354fd (patch)
treeedff0392a6d86c9f7e06c46abfd3fbe471b718b9 /setuptools/tests/test_sandbox.py
parent264b5dc6b9cf48b22bd2263d426026d7b8f45608 (diff)
downloadexternal_python_setuptools-ce481836f31142b939f4b93a6eba90630ba354fd.tar.gz
external_python_setuptools-ce481836f31142b939f4b93a6eba90630ba354fd.tar.bz2
external_python_setuptools-ce481836f31142b939f4b93a6eba90630ba354fd.zip
caught is a better name here
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()'