diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-13 11:00:02 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-13 11:00:02 -0500 |
commit | ce481836f31142b939f4b93a6eba90630ba354fd (patch) | |
tree | edff0392a6d86c9f7e06c46abfd3fbe471b718b9 /setuptools/tests/test_sandbox.py | |
parent | 264b5dc6b9cf48b22bd2263d426026d7b8f45608 (diff) | |
download | external_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.py | 4 |
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()' |