diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-05-21 11:30:58 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-05-21 11:52:32 -0400 |
commit | c96c3ffba9f8a6ab43e6f3d57349a46e3076c374 (patch) | |
tree | 59aae07d413257bdb2810a2ff57ee386e57d8d70 /setuptools/tests/test_sandbox.py | |
parent | d6959fca54137c47abb9c3f7a0cbd1d0fd3704d3 (diff) | |
download | external_python_setuptools-c96c3ffba9f8a6ab43e6f3d57349a46e3076c374.tar.gz external_python_setuptools-c96c3ffba9f8a6ab43e6f3d57349a46e3076c374.tar.bz2 external_python_setuptools-c96c3ffba9f8a6ab43e6f3d57349a46e3076c374.zip |
Expand test to cover string rendering of SandboxViolation
Diffstat (limited to 'setuptools/tests/test_sandbox.py')
-rw-r--r-- | setuptools/tests/test_sandbox.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/tests/test_sandbox.py b/setuptools/tests/test_sandbox.py index 929f0a5b..2b3d859e 100644 --- a/setuptools/tests/test_sandbox.py +++ b/setuptools/tests/test_sandbox.py @@ -126,3 +126,7 @@ class TestExceptionSaver: assert cmd == 'open' assert args == ('/etc/foo', 'w') assert kwargs == {} + + msg = str(caught.value) + assert 'open' in msg + assert "('/etc/foo', 'w')" in msg |