Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixes #3530: codelens test run works without exception. #3577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/2 Fixes/3530.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tests debugged via CodeLens no longer break for a `SystemExit` exception after successful test completion.
4 changes: 2 additions & 2 deletions pythonFiles/testlauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def exclude_current_file_from_debugger():
raw_input()
except NameError:
input()
sys.exit(1)
os._exit(1)


def run(cwd, testRunner, args):
Expand All @@ -53,7 +53,7 @@ def run(cwd, testRunner, args):
else:
import nose
nose.run(argv=args)
sys.exit(0)
os._exit(0)
finally:
pass

Expand Down