aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_sandbox.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-05-21 11:30:58 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-05-21 11:52:32 -0400
commitc96c3ffba9f8a6ab43e6f3d57349a46e3076c374 (patch)
tree59aae07d413257bdb2810a2ff57ee386e57d8d70 /setuptools/tests/test_sandbox.py
parentd6959fca54137c47abb9c3f7a0cbd1d0fd3704d3 (diff)
downloadexternal_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.py4
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