diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 12:22:53 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 12:22:53 -0500 |
commit | fba8ee7abecb12726293438e8af19d7c3fa54bb8 (patch) | |
tree | 2b2c2c3e01a8385fefd7dca2d425d3a1abe3aa04 /setuptools/tests/test_sandbox.py | |
parent | 3593a64ed6755876702ce362e1dfc87849c0952b (diff) | |
download | external_python_setuptools-fba8ee7abecb12726293438e8af19d7c3fa54bb8.tar.gz external_python_setuptools-fba8ee7abecb12726293438e8af19d7c3fa54bb8.tar.bz2 external_python_setuptools-fba8ee7abecb12726293438e8af19d7c3fa54bb8.zip |
Remove try/except/fail - Exceptions are failures by default.
Diffstat (limited to 'setuptools/tests/test_sandbox.py')
-rw-r--r-- | setuptools/tests/test_sandbox.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/setuptools/tests/test_sandbox.py b/setuptools/tests/test_sandbox.py index 6e5ce04a..cadc4812 100644 --- a/setuptools/tests/test_sandbox.py +++ b/setuptools/tests/test_sandbox.py @@ -33,10 +33,8 @@ class TestSandbox: target = os.path.join(gen_py, 'test_write') sandbox = DirectorySandbox(str(tmpdir)) try: - try: - sandbox.run(self._file_writer(target)) - except SandboxViolation: - self.fail("Could not create gen_py file due to SandboxViolation") + # attempt to create gen_py file + sandbox.run(self._file_writer(target)) finally: if os.path.exists(target): os.remove(target) |