Lines Matching refs:modfile
36 modfile = mod.__file__ variable
37 if modfile.endswith(('c', 'o')):
38 modfile = modfile[:-1] variable
166 (modfile, 16, 'eggs', [' st = inspect.stack()\n'], 0))
168 (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0))
170 (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0))
172 (modfile, 39, 'abuse', [' self.argue(a, b, c)\n'], 0))
176 self.assertEqual(git.tr[0][1:], (modfile, 43, 'argue',
178 self.assertEqual(git.tr[1][1:], (modfile, 9, 'spam',
180 self.assertEqual(git.tr[2][1:], (modfile, 18, 'eggs',
288 self.assertEqual(inspect.getmodule(None, modfile), mod)
295 self.assertEqual(inspect.getsourcefile(mod.spam), modfile)
296 self.assertEqual(inspect.getsourcefile(git.abuse), modfile)