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

Method test_parse_file_strange_extension

Lib/test/test_clinic.py:803–811  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

801 )
802
803 def test_parse_file_strange_extension(self) -> None:
804 filenames_to_errors = {
805 "foo.rs": "Can't identify file type for file 'foo.rs'",
806 "foo.hs": "Can't identify file type for file 'foo.hs'",
807 "foo.js": "Can't identify file type for file 'foo.js'",
808 }
809 for filename, errmsg in filenames_to_errors.items():
810 with self.subTest(filename=filename):
811 self.expect_parsing_failure(filename=filename, expected_error=errmsg)
812
813
814class ClinicGroupPermuterTest(TestCase):

Callers

nothing calls this directly

Calls 3

itemsMethod · 0.45
subTestMethod · 0.45

Tested by

no test coverage detected