diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 567eeb4..59f05b4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/interactive_process/interactive_process.py b/interactive_process/interactive_process.py index 761a1fa..a8d6253 100644 --- a/interactive_process/interactive_process.py +++ b/interactive_process/interactive_process.py @@ -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: diff --git a/tests/test_interactive_process.py b/tests/test_interactive_process.py index 7ed7d7c..3cbfd42 100644 --- a/tests/test_interactive_process.py +++ b/tests/test_interactive_process.py @@ -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