def test_line_number_genexp(self):

    def return_genexp():
        return (1 for x in y)
    genexp_lines = [1, 3, 1]
    genexp_code = return_genexp.__code__.co_consts[1]
    code_lines = [(None if (line is None) else (line - return_genexp.__code__.co_firstlineno)) for (_, _, line) in genexp_code.co_lines()]
    self.assertEqual(genexp_lines, code_lines)
def test_line_number_genexp(self):

    def return_genexp():
        return (1 for x in y)
    genexp_lines = [1, 3, 1]
    genexp_code = return_genexp.__code__.co_consts[1]
    code_lines = [(None if (line is None) else (line - return_genexp.__code__.co_firstlineno)) for (_, _, line) in genexp_code.co_lines()]
    self.assertEqual(genexp_lines, code_lines)