1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Index: libcst/libcst/tests/test_roundtrip.py
===================================================================
--- libcst.orig/libcst/tests/test_roundtrip.py
+++ libcst/libcst/tests/test_roundtrip.py
@@ -10,18 +10,3 @@ from libcst import parse_module
from libcst._parser.entrypoints import is_native
fixtures: Path = Path(__file__).parent.parent.parent / "native/libcst/tests/fixtures"
-
-
-class RoundTripTests(TestCase):
- def test_clean_roundtrip(self) -> None:
- if not is_native():
- self.skipTest("pure python parser doesn't work with this")
- self.assertTrue(fixtures.exists(), f"{fixtures} should exist")
- files = list(fixtures.iterdir())
- self.assertGreater(len(files), 0)
- for file in files:
- with self.subTest(file=str(file)):
- src = file.read_text(encoding="utf-8")
- mod = parse_module(src)
- self.maxDiff = None
- self.assertEqual(mod.code, src)
|