The system tests have a number of minor formatting and structural issues that would be better to clean up sooner rather than later. This PR addresses nearly all of them.
(fixes#592)
Under certain circumstances, __main__ is a "builtin" module. Such modules do not have a __file__ attribute. Consequently, this caused the pydevd injection code to fail. This PR fixes that.
Fixes#258
Scenarios:
* Launch Files
* Launch files with custom cwd
For each of the above scenarios:
* Test output
* Test breakpoints
* Test log points
* Test conditional breakpoints
* Test run to completion
(see #530)
os.kill() terminates the process immediately. However, we need the "disconnect" response to be sent (indirectly via the atexit handler). This PR switches to sys.exit() solve the problem. We still terminate the process early if disconnecting during a launch session.
(see #530)
We were sending the "disconnect" response only after closing the socket, meaning the response was never actually sent. This PR fixes that by ensuring the response is sent as late as possible, whether or not it is a "single session" situation.
(fixes#285)
We were not clearing things like breakpoints nor resuming threads when an "attach" session disconnnected. This caused problems, e.g. when disconnect happened with a thread stopped for a breakpoint. This PR fixes the problem by resetting all session-dependent debugger resources after the "disconnect" response has been sent (only for an "attach" session).
(fixes#448)
While #502 helped with the race between enable_attached() and adding breakpoints, there was still a small race left. This PR fixes it by CMD_RUN is not issued until after the breakpoints have been added.
* Test compat fixes for python 3.4 tests
* Enable python 3.4 CI in travis
* Fix for 3.4 missing text in traceback list
* Fix linter
* Add python 3.4 to classifiers
* Fix for line text
* Add flake8 configuration files
- .flake8.ci: addendum config for CI to make use of only.
* Add build badge for CI in VSTS
* Enable JUnit style test file output.
- convert_args return value simplified
- allow original style of unittest reporting as well
- remove unnecessary flags from junit xmlrunner
* Use argparse to collect runtime configuration of tests module
(see gh-448)
There is a race between attach and handshake completion that may result in breakpoints not being hit. This PR fixes that by waiting for handshake completion when waiting for attach.