Lines Matching defs:runpy
1 # Test the runpy module
21 import runpy
22 from runpy import _run_code, _run_module_code, run_module, run_path
44 import runpy
45 nested = runpy._run_module_code('x=1\\n', mod_name='<run>')
58 "runpy": runpy,
148 """Unit tests for runpy._run_code and runpy._run_module_code"""
187 """Unit tests for runpy.run_module"""
213 self.assertEqual(run_module("runpy")["__name__"], "runpy")
594 """Unit tests for runpy.run_path"""
739 source = ("import runpy\n"
740 "runpy.run_path(%r)\n") % dummy_dir
800 import runpy
801 runpy.run_module("ham")
813 import runpy
814 runpy._run_module_as_main("ham")
822 ["-c", "import runpy; runpy.run_module('ham')"],