Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion interactive_process/interactive_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, env={"PS1": "", "TERM": "dumb"}, echo=False):
shell = 'cmd.exe'
else:
shell = '/bin/bash'
self.process = PtyProcessUnicode.spawn([shell], env=env, echo=echo)
self.process = PtyProcessUnicode.spawn([shell, '--noprofile', '--norc'], env=env, echo=echo)

def send_command(self, command):
try:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_interactive_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def process(self):
def test_stream_nonblocking(self):
self.process.send_command("echo Hello")

output = self.process.read_nonblocking()
output = self.process.read_nonblocking(2)

assert output.strip() == "Hello" # newline is part of echo command

Expand Down
Loading