mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2025-02-26 00:26:01 +00:00
fix individual_coverage on Windows
This commit is contained in:
parent
83e543c3e6
commit
e2157ecdff
@ -3,7 +3,7 @@ from collections import abc
|
||||
|
||||
try:
|
||||
from types import UnionType
|
||||
except ImportError:
|
||||
except ImportError: # pragma: no cover
|
||||
UnionType = object() # type: ignore
|
||||
|
||||
Type = typing.Union[
|
||||
|
@ -25,6 +25,7 @@ exclude_lines =
|
||||
if typing.TYPE_CHECKING:
|
||||
if TYPE_CHECKING:
|
||||
@overload
|
||||
@abstractmethod
|
||||
|
||||
[mypy]
|
||||
ignore_missing_imports = True
|
||||
|
@ -87,6 +87,8 @@ def main():
|
||||
src_files = [
|
||||
f for f in src_files if not any(os.path.normpath(p) in f for p in excluded)
|
||||
]
|
||||
if len(sys.argv) > 1:
|
||||
src_files = [f for f in src_files if sys.argv[1] in str(f)]
|
||||
|
||||
ps = []
|
||||
for src in sorted(src_files):
|
||||
|
@ -329,6 +329,12 @@ def test_movement():
|
||||
v.focus_prev()
|
||||
assert v.focus.index == 0
|
||||
|
||||
v.clear()
|
||||
v.focus_next()
|
||||
assert v.focus.index is None
|
||||
v.focus_prev()
|
||||
assert v.focus.index is None
|
||||
|
||||
|
||||
def test_duplicate():
|
||||
v = view.View()
|
||||
|
@ -40,5 +40,6 @@
|
||||
<p>
|
||||
esse cillum dolore
|
||||
<p>eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</no-start-tag>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -9,6 +9,6 @@
|
||||
<p>Ut enim ad minim <p>veniam, quis nostrud <p>exercitation <p>ullamco laboris <p>
|
||||
nisi ut aliquip ex ea <p>commodo consequat.<p>Duis aute irure <p>dolor in reprehenderit <p>in voluptate velit<p> esse cillum dolore <p>eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
|
||||
|
||||
</no-start-tag>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user