diff options
author | Bruno Oliveira <bruno@esss.com.br> | 2020-01-22 11:03:45 -0300 |
---|---|---|
committer | Bruno Oliveira <bruno@esss.com.br> | 2020-01-22 11:03:45 -0300 |
commit | 93b74d28d2ac065d977c78bdc43de09272329412 (patch) | |
tree | 3987d94f8243d294cec2790ce28973521e029508 /src/_pytest/doctest.py | |
parent | 2f0d0fb349db3776f0951c9e0bc238441f263211 (diff) | |
parent | 8c4dfca0c174846a49ef74551a0db291aca9c6cd (diff) | |
download | pytest-93b74d28d2ac065d977c78bdc43de09272329412.tar.gz |
Merge remote-tracking branch 'upstream/master' into mm
Conflicts:
* src/_pytest/_code/code.py
* src/_pytest/main.py
* testing/python/metafunc.py
* testing/test_parseopt.py
* testing/test_pytester.py
Diffstat (limited to 'src/_pytest/doctest.py')
-rw-r--r-- | src/_pytest/doctest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/_pytest/doctest.py b/src/_pytest/doctest.py index 30eaba035..4714b2c1d 100644 --- a/src/_pytest/doctest.py +++ b/src/_pytest/doctest.py @@ -13,6 +13,8 @@ from typing import Sequence from typing import Tuple from typing import Union +import py + import pytest from _pytest import outcomes from _pytest._code.code import ExceptionInfo @@ -137,7 +139,7 @@ class ReprFailDoctest(TerminalRepr): ): self.reprlocation_lines = reprlocation_lines - def toterminal(self, tw) -> None: + def toterminal(self, tw: py.io.TerminalWriter) -> None: for reprlocation, lines in self.reprlocation_lines: for line in lines: tw.line(line) |