Home | History | Annotate | Download | only in test

Lines Matching refs:modfile

32 modfile = mod.__file__
33 if modfile.endswith(('c', 'o')):
34 modfile = modfile[:-1]
162 (modfile, 16, 'eggs', [' st = inspect.stack()\n'], 0))
164 (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0))
166 (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0))
168 (modfile, 39, 'abuse', [' self.argue(a, b, c)\n'], 0))
172 self.assertEqual(git.tr[0][1:], (modfile, 43, 'argue',
174 self.assertEqual(git.tr[1][1:], (modfile, 9, 'spam',
176 self.assertEqual(git.tr[2][1:], (modfile, 18, 'eggs',
269 self.assertEqual(inspect.getmodule(None, modfile), mod)
276 self.assertEqual(inspect.getsourcefile(mod.spam), modfile)
277 self.assertEqual(inspect.getsourcefile(git.abuse), modfile)