MCPcopy Index your code
hub / github.com/python/cpython / test_files

Method test_files

Lib/test/test_unparse.py:1057–1067  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1055 return items
1056
1057 def test_files(self):
1058 with warnings.catch_warnings():
1059 warnings.simplefilter('ignore', SyntaxWarning)
1060
1061 for item in self.files_to_test():
1062 if test.support.verbose:
1063 print(f"Testing {item.absolute()}")
1064
1065 with self.subTest(filename=item):
1066 source = read_pyfile(item)
1067 self.check_ast_roundtrip(source)
1068
1069
1070if __name__ == "__main__":

Callers

nothing calls this directly

Calls 5

files_to_testMethod · 0.95
read_pyfileFunction · 0.85
absoluteMethod · 0.80
check_ast_roundtripMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected