Skip to content

Commit

Permalink
Revert "exceptions: fix ProcessExecutionError creating recursion errors"
Browse files Browse the repository at this point in the history
This reverts commit 32e314c.
  • Loading branch information
koreno committed Feb 2, 2022
1 parent ca34209 commit 7bba255
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion plumbum/commands/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class ProcessExecutionError(EnvironmentError):
"""

def __init__(self, argv, retcode, stdout, stderr, message=None):
super().__init__(argv, retcode, stdout, stderr)
super().__init__(self, argv, retcode, stdout, stderr)
self.message = message
self.argv = argv
self.retcode = retcode
Expand Down
5 changes: 0 additions & 5 deletions tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,11 +724,6 @@ def test_quoting(self):
ls("-a", "") # check that empty strings are rendered correctly
assert execinfo.value.argv[-2:] == ["-a", ""]

def test_exceptions(self):
with pytest.raises(ProcessExecutionError) as exc_info:
local.cmd.false()
assert repr(exc_info.value) == "ProcessExecutionError(['/usr/bin/false'], 1)"

def test_tempdir(self):
with local.tempdir() as dir:
assert dir.is_dir()
Expand Down

0 comments on commit 7bba255

Please sign in to comment.