diff options
author | Ran Benita <ran@unusedvar.com> | 2019-09-14 00:20:24 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-10-23 14:20:15 +0300 |
commit | 1787bffda016f07b25c6dc7a2fb27e39ab920ec4 (patch) | |
tree | 48d60c63cb2947de1b022e7d693aac336947da40 /testing/test_capture.py | |
parent | 0267b25c66875617ed69132445820a6f82e6e2fa (diff) | |
download | pytest-1787bffda016f07b25c6dc7a2fb27e39ab920ec4.tar.gz |
Fix check_untyped_defs errors in capture
Diffstat (limited to 'testing/test_capture.py')
-rw-r--r-- | testing/test_capture.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/test_capture.py b/testing/test_capture.py index 0f7db4b8e..180637db6 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -6,6 +6,8 @@ import subprocess import sys import textwrap from io import UnsupportedOperation +from typing import List +from typing import TextIO import py @@ -857,8 +859,8 @@ def tmpfile(testdir): @needsosdup -def test_dupfile(tmpfile): - flist = [] +def test_dupfile(tmpfile) -> None: + flist = [] # type: List[TextIO] for i in range(5): nf = capture.safe_text_dupfile(tmpfile, "wb") assert nf != tmpfile |