Skip to content

Fix stdin not respecting text mode when text=True or encoding is set.#205

Merged
aklajnert merged 1 commit into
masterfrom
fix/stdin-text-mode
May 9, 2026
Merged

Fix stdin not respecting text mode when text=True or encoding is set.#205
aklajnert merged 1 commit into
masterfrom
fix/stdin-text-mode

Conversation

@aklajnert
Copy link
Copy Markdown
Owner

@aklajnert aklajnert commented May 9, 2026

Closes #204

@aklajnert aklajnert force-pushed the fix/stdin-text-mode branch from b27d241 to ec9490b Compare May 9, 2026 07:50
@aklajnert aklajnert merged commit 827e306 into master May 9, 2026
32 checks passed
@aklajnert aklajnert deleted the fix/stdin-text-mode branch May 9, 2026 08:25
martin-s-a pushed a commit to I2PC/xmipp3-installer that referenced this pull request May 13, 2026
Bumps
[pytest-subprocess](https://github.com/aklajnert/pytest-subprocess) from
1.5.4 to 1.6.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/aklajnert/pytest-subprocess/blob/master/HISTORY.rst">pytest-subprocess's
changelog</a>.</em></p>
<blockquote>
<h2>1.6.0 (2026-05-10)</h2>
<p>Features</p>
<pre><code>*
`[#206](aklajnert/pytest-subprocess#206)
&lt;https://github.com/aklajnert/pytest-subprocess/pull/206&gt;`_: Add
fp.regex() for regex-based command argument matching.
<p>Bug fixes<br />
</code></pre></p>
<ul>

<li><code>[#207](aklajnert/pytest-subprocess#207)
&lt;https://github.com/aklajnert/pytest-subprocess/pull/207&gt;</code>_:
Fix poll() not reflecting returncode when a callback is registered.</li>

<li><code>[#205](aklajnert/pytest-subprocess#205)
&lt;https://github.com/aklajnert/pytest-subprocess/pull/205&gt;</code>_:
Fix stdin not respecting text mode when text=True or encoding is
set.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aklajnert/pytest-subprocess/commit/ab2ff2e6052e841ded654fa32a49a8902fad4bc5"><code>ab2ff2e</code></a>
Replace Sphinx-only roles with plain RST in README</li>
<li><a
href="https://github.com/aklajnert/pytest-subprocess/commit/1c3567636814939a6d107de40d5bd1933fde2e75"><code>1c35676</code></a>
Bump version.</li>
<li><a
href="https://github.com/aklajnert/pytest-subprocess/commit/ac99f46b29c390b804b911f20d4c510996e702fe"><code>ac99f46</code></a>
Fix poll() not reflecting returncode when a callback is registered. (<a
href="https://redirect.github.com/aklajnert/pytest-subprocess/issues/207">#207</a>)</li>
<li><a
href="https://github.com/aklajnert/pytest-subprocess/commit/308db95f984c790df9a8d79a638d5d5ff4a43b0d"><code>308db95</code></a>
Add fp.regex() for regex-based command argument matching. (<a
href="https://redirect.github.com/aklajnert/pytest-subprocess/issues/206">#206</a>)</li>
<li><a
href="https://github.com/aklajnert/pytest-subprocess/commit/827e306a25c86d423d8e7d42bb012d2d33c054c4"><code>827e306</code></a>
Fix stdin not respecting text mode when text=True or encoding is set.
(<a
href="https://redirect.github.com/aklajnert/pytest-subprocess/issues/205">#205</a>)</li>
<li><a
href="https://github.com/aklajnert/pytest-subprocess/commit/3ae1444430d963a8a1ff802681eecfa0089232d2"><code>3ae1444</code></a>
Update publish workflow to trigger on all tags</li>
<li><a
href="https://github.com/aklajnert/pytest-subprocess/commit/14c571b9b72a7b7e429189a9455fc715e6f0dbce"><code>14c571b</code></a>
Fix tests executed via uv (<a
href="https://redirect.github.com/aklajnert/pytest-subprocess/issues/202">#202</a>)</li>
<li><a
href="https://github.com/aklajnert/pytest-subprocess/commit/56ed9c5b8bfdfdea62c19c49984456a060ab5c05"><code>56ed9c5</code></a>
Add a publish workflow for GH actions.</li>
<li>See full diff in <a
href="https://github.com/aklajnert/pytest-subprocess/compare/1.5.4...1.6.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pytest-subprocess&package-manager=pip&previous-version=1.5.4&new-version=1.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Popen stdin ignores text=True, returns BytesIO instead of TextIOWrapper

1 participant