MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_files

Method test_files

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

files_to_testMethod · 0.95
read_pyfileFunction · 0.85
absoluteMethod · 0.80
subTestMethod · 0.80
check_ast_roundtripMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected