1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Index: libcst/libcst/tests/test_pyre_integration.py
===================================================================
--- libcst.orig/libcst/tests/test_pyre_integration.py
+++ libcst/libcst/tests/test_pyre_integration.py
@@ -84,33 +84,6 @@ class TypeVerificationVisitor(cst.CSTVis
self.annotations.pop()
-class PyreIntegrationTest(UnitTest):
- # pyre-fixme[56]: Pyre was not able to infer the type of argument
- # `comprehension((source_path, data_path) for generators(generator((source_path,
- # data_path) in zip(TEST_SUITE_PATH.glob("*.py"), TEST_SUITE_PATH.glob("*.json"))
- # if )))` to decorator factory `libcst.testing.utils.data_provider`.
- @data_provider(
- (
- (source_path, data_path)
- for source_path, data_path in zip(
- TEST_SUITE_PATH.glob("*.py"), TEST_SUITE_PATH.glob("*.json")
- )
- )
- )
- def test_type_availability(self, source_path: Path, data_path: Path) -> None:
- module = cst.parse_module(source_path.read_text())
- data: PyreData = json.loads(data_path.read_text())
- lookup: Dict[Tuple[int, int, int, int], str] = {}
- for t in data["types"]:
- loc = t["location"]
- start = loc["start"]
- stop = loc["stop"]
- lookup[(start["line"], start["column"], stop["line"], stop["column"])] = t[
- "annotation"
- ]
- MetadataWrapper(module).visit(TypeVerificationVisitor(lookup, self))
-
-
if __name__ == "__main__":
import sys
|