-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from parente/general-cleanup
General code cleanup part #1
- Loading branch information
Showing
9 changed files
with
319 additions
and
217 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
#!/usr/bin/env python | ||
import sys | ||
import pytest | ||
|
||
if __name__ == '__main__': | ||
# call pytest and exit with the return code from pytest so that | ||
# travis will fail correctly if tests fail | ||
sys.exit(pytest.main(sys.argv[1:])) | ||
import coverage | ||
cov = coverage.Coverage() | ||
cov.start() | ||
|
||
# Import required modules after coverage starts | ||
import sys | ||
import pytest | ||
|
||
# Call pytest and exit with the return code from pytest so that | ||
# CI systems will fail if tests fail. | ||
ret = pytest.main(sys.argv[1:]) | ||
|
||
cov.stop() | ||
cov.save() | ||
# Save HTML coverage report to disk | ||
cov.html_report() | ||
# Emit coverage report to stdout | ||
cov.report() | ||
|
||
sys.exit(ret) |
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 |
---|---|---|
@@ -1,16 +1,7 @@ | ||
from tornado.ioloop import IOLoop | ||
|
||
"""Entrypoint for running the kernel process.""" | ||
from spylon_kernel import SpylonKernel | ||
import sys | ||
from tornado.ioloop import IOLoop | ||
|
||
if __name__ == '__main__': | ||
|
||
# For testing purposes we want to be able to run our kernel with coverage on. | ||
try: | ||
import coverage | ||
coverage.process_startup() | ||
except ImportError: | ||
pass | ||
|
||
IOLoop.configure("tornado.platform.asyncio.AsyncIOLoop") | ||
SpylonKernel.run_as_main() |
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
Oops, something went wrong.