'Issue #11670.'

def test_readline_generator(self):

    parser = configparser.ConfigParser()
    with self.assertRaises(TypeError):
        parser.read_file(FakeFile())
    parser.read_file(readline_generator(FakeFile()))
    self.assertIn('Foo    Bar', parser)
    self.assertIn('foo', parser['Foo    Bar'])
    self.assertEqual(parser['Foo    Bar']['foo'], 'newbar')
