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

Method _testFile

Lib/test/test_tokenize.py:1295–1298  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

1293 """
1294
1295 def _testFile(self, filename):
1296 path = os.path.join(os.path.dirname(__file__), 'tokenizedata', filename)
1297 with open(path, 'rb') as f:
1298 TestRoundtrip.check_roundtrip(self, f)
1299
1300 def test_utf8_coding_cookie_and_no_utf8_bom(self):
1301 f = 'tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt'

Calls 4

openFunction · 0.50
joinMethod · 0.45
dirnameMethod · 0.45
check_roundtripMethod · 0.45

Tested by

no test coverage detected