File: drop-pyre-tests

package info (click to toggle)
python-libcst 1.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,240 kB
  • sloc: python: 78,096; makefile: 15; sh: 2
file content (47 lines) | stat: -rw-r--r-- 1,855 bytes parent folder | download
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
39
40
41
42
43
44
45
46
47
From: =?utf-8?q?Jelmer_Vernoo=C4=B3?= <jelmer@debian.org>
Date: Sat, 15 Nov 2025 17:24:32 +0200
Subject: drop-pyre-tests

===================================================================
---
 libcst/tests/test_pyre_integration.py | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/libcst/tests/test_pyre_integration.py b/libcst/tests/test_pyre_integration.py
index 679b2d5..b5e2c31 100644
--- a/libcst/tests/test_pyre_integration.py
+++ b/libcst/tests/test_pyre_integration.py
@@ -84,33 +84,6 @@ class TypeVerificationVisitor(cst.CSTVisitor):
         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