36
36
-- incremental runs is not yet supported.
37
37
--
38
38
-- Each test case run without caching and with caching (if the initial run passes),
39
- -- unless it has one a --skip-cache or --skip-nocache suffix . We sometimes
39
+ -- unless it has one a -only_when_cache or -only_when_nocache arguments . We sometimes
40
40
-- skip caching test cases to speed up tests, if the caching variant is not useful.
41
41
-- The caching test case variants get an implicit _cached suffix.
42
42
@@ -313,7 +313,7 @@ main:5: error: Module has no attribute "B"
313
313
==
314
314
main:5: error: Module has no attribute "B"
315
315
316
- [case testContinueToReportErrorAtTopLevel-skip-cache ]
316
+ [case testContinueToReportErrorAtTopLevel-only_when_nocache ]
317
317
-- Different cache/no-cache tests because:
318
318
-- Error message ordering differs
319
319
import n
@@ -338,7 +338,7 @@ n.py:2: error: "A" has no attribute "g"
338
338
==
339
339
n.py:2: error: "A" has no attribute "g"
340
340
341
- [case testContinueToReportErrorAtTopLevel-skip-nocache ]
341
+ [case testContinueToReportErrorAtTopLevel-only_when_cache ]
342
342
-- Different cache/no-cache tests because:
343
343
-- Error message ordering differs
344
344
import n
@@ -4556,7 +4556,7 @@ def g(x: T) -> T:
4556
4556
==
4557
4557
a.py:2: error: Value of type variable "T" of function cannot be "int"
4558
4558
4559
- [case testGenericFineCallableBoundDeleted-skip-nocache ]
4559
+ [case testGenericFineCallableBoundDeleted-only_when_cache ]
4560
4560
# See https://github.com/python/mypy/issues/4783
4561
4561
import a
4562
4562
[file a.py]
@@ -5953,7 +5953,7 @@ class C:
5953
5953
==
5954
5954
a.py:4: error: Argument 1 to "func" has incompatible type "B"; expected "P"
5955
5955
5956
- [case testTwoProtocolsTwoFilesCrossedUpdateType-skip-cache ]
5956
+ [case testTwoProtocolsTwoFilesCrossedUpdateType-only_when_nocache ]
5957
5957
# this test and the next one (TwoProtocolsTwoFilesCrossedDeleteAttr) has errors ordered
5958
5958
# opposite way with and without cache, therefore skip one of each.
5959
5959
import a
@@ -5991,7 +5991,7 @@ b2.py:7: error: Argument 1 to "f" has incompatible type "D"; expected "P1"
5991
5991
b2.py:7: note: Following member(s) of "D" have conflicts:
5992
5992
b2.py:7: note: x: expected "int", got "str"
5993
5993
5994
- [case testTwoProtocolsTwoFilesCrossedDeleteAttr-skip-nocache ]
5994
+ [case testTwoProtocolsTwoFilesCrossedDeleteAttr-only_when_cache ]
5995
5995
import a
5996
5996
[file a.py]
5997
5997
import b1
@@ -6732,7 +6732,7 @@ def g(x: str) -> str: pass
6732
6732
==
6733
6733
main:2: error: Argument 1 to "g" has incompatible type "int"; expected "str"
6734
6734
6735
- [case testExtendedUnpacking-skip-cache ]
6735
+ [case testExtendedUnpacking-only_when_nocache ]
6736
6736
from typing import List
6737
6737
from a import g
6738
6738
def f() -> List[int]:
@@ -6752,7 +6752,7 @@ def g() -> Tuple[str, str]: pass
6752
6752
==
6753
6753
main:5: error: Incompatible return value type (got "List[str]", expected "List[int]")
6754
6754
6755
- [case testUnpackInExpression1-skip-cache ]
6755
+ [case testUnpackInExpression1-only_when_nocache ]
6756
6756
from typing import Tuple, List
6757
6757
from a import t
6758
6758
@@ -6776,7 +6776,7 @@ def t() -> Tuple[str]: ...
6776
6776
main:5: error: Incompatible return value type (got "Tuple[int, str]", expected "Tuple[int, int]")
6777
6777
main:8: error: List item 1 has incompatible type "Tuple[str]"; expected "int"
6778
6778
6779
- [case testUnpackInExpression2-skip-cache ]
6779
+ [case testUnpackInExpression2-only_when_nocache ]
6780
6780
from typing import Set
6781
6781
from a import t
6782
6782
@@ -6796,7 +6796,7 @@ def t() -> Tuple[str]: pass
6796
6796
==
6797
6797
main:5: error: Argument 2 to <set> has incompatible type "*Tuple[str]"; expected "int"
6798
6798
6799
- [case testUnpackInExpression3-skip-cache ]
6799
+ [case testUnpackInExpression3-only_when_nocache ]
6800
6800
from typing import Dict
6801
6801
from a import d
6802
6802
@@ -6816,7 +6816,7 @@ def d() -> Dict[int, int]: pass
6816
6816
==
6817
6817
main:5: error: Argument 1 to "update" of "dict" has incompatible type "Dict[int, int]"; expected "Mapping[int, str]"
6818
6818
6819
- [case testAwaitAndAsyncDef-skip-cache ]
6819
+ [case testAwaitAndAsyncDef-only_when_nocache ]
6820
6820
from a import g
6821
6821
6822
6822
async def f() -> int:
@@ -6836,7 +6836,7 @@ async def g() -> str:
6836
6836
==
6837
6837
main:4: error: Incompatible return value type (got "str", expected "int")
6838
6838
6839
- [case testAwaitAnd__await__-skip-cache ]
6839
+ [case testAwaitAnd__await__-only_when_nocache ]
6840
6840
from a import C
6841
6841
6842
6842
async def f(c: C) -> int:
@@ -6899,7 +6899,7 @@ main:6: error: Incompatible return value type (got "str", expected "int")
6899
6899
==
6900
6900
main:6: error: Incompatible return value type (got "object", expected "int")
6901
6901
6902
- [case testAsyncWith2-skip-cache ]
6902
+ [case testAsyncWith2-only_when_nocache ]
6903
6903
from a import C
6904
6904
6905
6905
async def f() -> int:
@@ -7005,7 +7005,7 @@ main:7: error: Unsupported operand types for + ("str" and "int")
7005
7005
==
7006
7006
main:5: error: Return type of "m" incompatible with supertype "B"
7007
7007
7008
- [case testLiskovFineVariableClean-skip-cache ]
7008
+ [case testLiskovFineVariableClean-only_when_nocache ]
7009
7009
import b
7010
7010
class A(b.B):
7011
7011
x: str
@@ -7019,7 +7019,7 @@ class B:
7019
7019
==
7020
7020
main:3: error: Incompatible types in assignment (expression has type "str", base class "B" defined the type as "int")
7021
7021
7022
- [case testLiskovFineVariableCleanDefInMethod-skip-cache ]
7022
+ [case testLiskovFineVariableCleanDefInMethod-only_when_nocache ]
7023
7023
import b
7024
7024
class A(b.B):
7025
7025
def meth(self) -> None:
@@ -7034,7 +7034,7 @@ class B:
7034
7034
==
7035
7035
main:4: error: Incompatible types in assignment (expression has type "str", base class "B" defined the type as "int")
7036
7036
7037
- [case testLiskovFineVariableCleanDefInMethodNested-skip-cache ]
7037
+ [case testLiskovFineVariableCleanDefInMethodNested-only_when_nocache ]
7038
7038
from b import B
7039
7039
def outer() -> None:
7040
7040
class A(B):
@@ -7050,7 +7050,7 @@ class B:
7050
7050
==
7051
7051
main:5: error: Incompatible types in assignment (expression has type "str", base class "B" defined the type as "int")
7052
7052
7053
- [case testLiskovFineVariableInFunctionClean-skip-cache ]
7053
+ [case testLiskovFineVariableInFunctionClean-only_when_nocache ]
7054
7054
from b import B
7055
7055
def outer() -> None:
7056
7056
class A(B):
@@ -7065,7 +7065,7 @@ class B:
7065
7065
==
7066
7066
main:4: error: Incompatible types in assignment (expression has type "str", base class "B" defined the type as "int")
7067
7067
7068
- [case testLiskovFineDecoratorClean-skip-cache ]
7068
+ [case testLiskovFineDecoratorClean-only_when_nocache ]
7069
7069
import b
7070
7070
from c import deco
7071
7071
class A(b.B):
0 commit comments