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

Method reader

Lib/test/test_io/test_general.py:812–816  ·  view source on GitHub ↗
(file, barrier)

Source from the content-addressed store, hash-verified

810 file.write("x")
811
812 def reader(file, barrier):
813 barrier.wait()
814 for _ in range(read_count):
815 for line in file:
816 self.assertEqual(line, "")
817
818 with self.open(os_helper.TESTFN, "w+") as f:
819 barrier = threading.Barrier(thread_count + 1)

Callers 15

_genopsFunction · 0.45
test_streamreaderMethod · 0.45
test_readlinesMethod · 0.45
test_copyMethod · 0.45
test_pickleMethod · 0.45
_read_testMethod · 0.45
test_read_eolMethod · 0.45
test_read_linenumMethod · 0.45
test_register_kwargsMethod · 0.45
test_space_dialectMethod · 0.45

Calls 2

waitMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected