Skip to content

Commit 1d934fc

Browse files
committed
Second try to fix write issues.
Add coverage, remove nose.
1 parent 36d0e01 commit 1d934fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip check-manifest
29-
pip install pytest
29+
pip install pytest pytest-cov
3030
pip install .
3131
python -m ipykernel.kernelspec --user
3232
- name: Test with pytest
3333
run: |
34-
pytest
34+
pytest --cov jupyter_console
3535
- name: Check Manifest
3636
run: |
3737
check-manifest

jupyter_console/ptshell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ def handle_execute_reply(self, msg_id, timeout=None):
747747
content = msg["content"]
748748
status = content['status']
749749

750-
if status == 'aborted':
751-
self.write('Aborted\n')
750+
if status == "aborted":
751+
sys.stdout.write("Aborted\n")
752752
return
753753
elif status == 'ok':
754754
# handle payloads

0 commit comments

Comments
 (0)