

def test_no_ending_newline(self):
    lines.addCleanup(support.unlink, support.TESTFN)
    with open(support.TESTFN, 'w') as fp:
        fp.write(SOURCE_3)
    lines = linecache.getlines(support.TESTFN)
    self.assertEqual(lines, ['\n', 'def f():\n', '    return 3\n'])

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_linecache.py LineCacheTests.test_no_ending_newline/VarMisuse@10/15 `self`->`lines`