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

Method _test_module_encoding

Lib/test/test_argparse.py:6055–6059  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

6053class TestEncoding(TestCase):
6054
6055 def _test_module_encoding(self, path):
6056 path, _ = os.path.splitext(path)
6057 path += ".py"
6058 with open(path, 'r', encoding='utf-8') as f:
6059 f.read()
6060
6061 def test_argparse_module_encoding(self):
6062 self._test_module_encoding(argparse.__file__)

Calls 3

splitextMethod · 0.80
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected