Skip to content

Commit

Permalink
Merge pull request #25 from andfoy/more_tests
Browse files Browse the repository at this point in the history
PR: Add spawn process failure test
  • Loading branch information
andfoy authored Jun 22, 2017
2 parents 148b92e + 77dde2b commit 0ca1b0f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[run]
plugins = Cython.Coverage
omit = *.pxd
omit =
*.pxd
*/tests/*

[report]
fail_under=0
8 changes: 8 additions & 0 deletions winpty/tests/test_cywinpty.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ def test_agent_spawn():
del agent


def test_agent_spawn_fail():
agent = agent_fixture(80, 25)
try:
agent.spawn('cmd.exe')
except RuntimeError:
pass


def test_agent_resize():
agent = agent_fixture(80, 25)
agent.set_size(80, 70)
Expand Down

0 comments on commit 0ca1b0f

Please sign in to comment.