This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unhandled exception tests (#682)
Adds unhandled exception tests #654 Fixes a bug in _io.py that caused JSONDecodeError in tests sometimes #683 Fixes a issue for some cases where the tests were timing out on windows
- Loading branch information
1 parent
501d163
commit 5db5b30
Showing
8 changed files
with
419 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
7 changes: 7 additions & 0 deletions
7
tests/resources/system_tests/test_exceptions/mypkg_attach_unhandled/__main__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import ptvsd | ||
import sys | ||
ptvsd.enable_attach((sys.argv[1], sys.argv[2])) | ||
ptvsd.wait_for_attach() | ||
|
||
raise ArithmeticError('Hello') | ||
sys.stdout.write('end') |
Empty file.
4 changes: 4 additions & 0 deletions
4
tests/resources/system_tests/test_exceptions/mypkg_launch_unhandled/__main__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import sys | ||
|
||
raise ArithmeticError('Hello') | ||
sys.stdout.write('end') |
7 changes: 7 additions & 0 deletions
7
tests/resources/system_tests/test_exceptions/unhandled_exceptions_attach.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import sys | ||
import ptvsd | ||
ptvsd.enable_attach((('localhost', 9879))) | ||
ptvsd.wait_for_attach() | ||
|
||
raise ArithmeticError('Hello') | ||
sys.stdout.write('end') |
Oops, something went wrong.