Exemplo n.º 1
0
def reader_thread(data):
    with concurrently.open_for_read(data['filename']) as f:
        data['event'].wait()
        data['read'] = f.read()
Exemplo n.º 2
0
def reader_thread(data):
    with concurrently.open_for_read(data['filename']) as f:
        data['event'].wait()
        data['read'] = f.read()
Exemplo n.º 3
0
 def test_simple_read(self):
     with concurrently.open_for_read(self.tmpfile) as f:
         self.assertEqual(self.contents, f.read())
Exemplo n.º 4
0
 def test_simple_read(self):
     with concurrently.open_for_read(self.tmpfile) as f:
         self.assertEqual(self.contents, f.read())