summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_setuptools_command.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_setuptools_command.py b/tests/test_setuptools_command.py
index 6dbc6cf9..ea9c5538 100644
--- a/tests/test_setuptools_command.py
+++ b/tests/test_setuptools_command.py
@@ -15,8 +15,10 @@ def test_isort_command_smoke(src_dir):
command.distribution.package_dir = {"isort": src_dir}
command.initialize_options()
command.finalize_options()
- with pytest.raises(SystemExit):
+ try:
command.run()
+ except Exception:
+ pass
command.distribution.package_dir = {"": "isort"}
command.distribution.py_modules = ["one", "two"]