def test_leading_newlines(self):
    s256 = ''.join(((['\n'] * 256) + ['spam']))
    co = compile(s256, 'fn', 'exec')
    self.assertEqual(co.co_firstlineno, 1)
    self.assertEqual(list(co.co_lines()), [(0, 2, None), (2, 10, 257)])
def test_leading_newlines(self):
    s256 = .join(((['\n'] * 256) + ['spam']))
    co = compile(s256, 'fn', 'exec')
    self.assertEqual(co.co_firstlineno, 1)
    self.assertEqual(list(co.co_lines()), [(0, 2, None), (2, 10, 257)])