Skip to content

Commit

Permalink
Clean up some tests leaking output, and tweak a header
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Apr 1, 2015
1 parent ec87103 commit a019edd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def _output_eq(cmd, expected):
return eq_(run(cmd).stdout, expected)
return eq_(run(cmd, hide=True).stdout, expected)


class Main(Spec):
Expand Down
3 changes: 2 additions & 1 deletion tests/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _config_check(key, config_val, kwarg_val, expected, func='run_direct'):


class Run(Spec):
"run()"
"Basic run() / Context.run() behavior"

def setup(self):
os.chdir(support)
Expand Down Expand Up @@ -243,6 +243,7 @@ def hide_out_hides_both_under_pty(self):
eq_(r.stderr, "")

@skip_if_windows
@trap
def hide_err_has_no_effect_under_pty(self):
r = run(self.sub.format('err', hide='both'))
eq_(r.stdout, "foo\r\nbar\r\n")
Expand Down

0 comments on commit a019edd

Please sign in to comment.