Home | History | Annotate | Download | only in test

Lines Matching full:getsource

25 # getdoc, getfile, getmodule, getsourcefile, getcomments, getsource,
211 self.assertEqual(inspect.getsource(obj),
311 inspect.getsource(ns["x"])
327 # Test inspect.getsource with a one-line lambda function.
331 # Test inspect.getsource with a three-line lambda function,
336 # Test inspect.getsource with a two-line lambda function,
341 # Test inspect.getsource with a regular one-line function.
345 # Test inspect.getsource with a regular function where
351 # Test inspect.getsource with a regular function where
357 # Test inspect.getsource with a one-line lambda function
362 # Test inspect.getsource with a lambda function defined
395 self.assertRaises(IOError, inspect.getsource, unicodedata)
402 self.assertRaises(IOError, inspect.getsource, co)
405 self.assertEqual(inspect.getsource(co), lines[0])
411 self.assertRaises(IOError, inspect.getsource, co)