summaryrefslogtreecommitdiff
path: root/src/_pytest/pytester.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-12-05 21:52:17 +0200
committerGitHub <noreply@github.com>2020-12-05 21:52:17 +0200
commite398c93884f228c9808adf9d0be2f876719e703d (patch)
tree31425dd4f72b2b88f5a7c558f1fe3a7fdfff7b69 /src/_pytest/pytester.py
parent760a73c08ce51d6556086988aee749978334ef91 (diff)
parentd50df85e26b28e28ab5fb9a50df791068a051192 (diff)
downloadpytest-e398c93884f228c9808adf9d0be2f876719e703d.tar.gz
Merge pull request #8055 from bluetech/unraisable
Add unraisableexception and threadexception plugins
Diffstat (limited to 'src/_pytest/pytester.py')
-rw-r--r--src/_pytest/pytester.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py
index 510d3aa60..6833eb021 100644
--- a/src/_pytest/pytester.py
+++ b/src/_pytest/pytester.py
@@ -1350,7 +1350,7 @@ class Pytester:
stderr=f2,
close_fds=(sys.platform != "win32"),
)
- if isinstance(stdin, bytes):
+ if popen.stdin is not None:
popen.stdin.close()
def handle_timeout() -> None: