Lines Matching refs:source_name
97 source_name = support.TESTFN + '.py'
98 self.addCleanup(support.unlink, source_name)
99 with open(source_name, 'w') as source:
101 getline(source_name, 1)
105 with open(source_name) as source:
107 self.assertEqual(line, getline(source_name, index + 1))
110 with open(source_name, 'w') as source:
118 self.assertEqual(line, getline(source_name, index + 1))
121 linecache.checkcache(source_name)
122 with open(source_name) as source:
124 self.assertEqual(line, getline(source_name, index + 1))