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

Method reader

Lib/test/test_io.py:1095–1099  ·  view source on GitHub ↗
(file, barrier)

Source from the content-addressed store, hash-verified

1093 file.write("x")
1094
1095 def reader(file, barrier):
1096 barrier.wait()
1097 for _ in range(read_count):
1098 for line in file:
1099 self.assertEqual(line, "")
1100
1101 with self.open(os_helper.TESTFN, "w+") as f:
1102 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