Skip to content

Commit 4b425c8

Browse files
committed
revert: revert back to the working logger with the wokwi
1 parent 7eb79f9 commit 4b425c8

File tree

1 file changed

+1
-10
lines changed
  • pytest-embedded/pytest_embedded

1 file changed

+1
-10
lines changed

pytest-embedded/pytest_embedded/log.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class DuplicateStdoutPopen(subprocess.Popen):
166166
SOURCE = 'POPEN'
167167
REDIRECT_CLS = _PopenRedirectProcess
168168

169-
def __init__(self, msg_queue: MessageQueue, cmd: str | list[str], meta: Meta | None = None, **kwargs):
169+
def __init__(self, msg_queue: MessageQueue, cmd: str | list[str] = [], meta: Meta | None = None, **kwargs):
170170
self._q = msg_queue
171171
self._p = None
172172

@@ -188,15 +188,6 @@ def __init__(self, msg_queue: MessageQueue, cmd: str | list[str], meta: Meta | N
188188
self._logfile_offset = 0
189189
logging.debug(f'temp log file: {_log_file}')
190190

191-
kwargs.update(
192-
{
193-
'bufsize': 0,
194-
'stdin': subprocess.PIPE,
195-
'stdout': self._fw,
196-
'stderr': self._fw,
197-
}
198-
)
199-
200191
self._cmd = cmd
201192

202193
# Only start subprocess if command is not empty

0 commit comments

Comments
 (0)