Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amoffat committed Feb 9, 2023
1 parent 5221c3e commit 61ec384
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion sh.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def __reduce__(self):
return self.__class__, (self.full_cmd, self.stdout, self.stderr, self.truncate)

def __init__(self, full_cmd, stdout, stderr, truncate=True):
self.exit_code = None
self.exit_code = self.exit_code
self.full_cmd = full_cmd
self.stdout = stdout
self.stderr = stderr
Expand Down
9 changes: 0 additions & 9 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2503,15 +2503,6 @@ def test_decode_error_handling(self):
)
self.assertEqual(p, "test")

p = python(
py.name,
_encoding="ascii",
_decode_errors="ignore",
_out=sys.stdout,
_tee=True,
)
self.assertEqual(p, "test")

def test_signal_exception(self):
from sh import SignalException_15

Expand Down

0 comments on commit 61ec384

Please sign in to comment.