Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/m/o/modulegraph-0.11.1/modulegraph_tests/test_modulegraph.py   modulegraph(Download)
 
            graph = modulegraph.ModuleGraph()
            m = graph.find_module('sys', None)
            self.assertEqual(record, [])
            self.assertEqual(m, (None, None, ("", "", imp.C_BUILTIN)))
 
            self.assertEqual(record, [])
            m = graph.find_module('shutil', None)
            self.assertEqual(record, [
                ('shutil', graph.path),
            m[0].close()
 
            m2 = graph.find_module('shutil', None)
            self.assertEqual(m[1:], m2[1:])
            m2[0].close()
 
 
            record[:] = []
            m = graph.find_module('sax', xml.packagepath, xml)