MCPcopy Index your code
hub / github.com/python/cpython / test_main

Method test_main

Lib/test/test_sysconfig.py:442–446  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

440 self.assertEqual(user_path, expected)
441
442 def test_main(self):
443 # just making sure _main() runs and returns things in the stdout
444 with captured_stdout() as output:
445 _main()
446 self.assertTrue(len(output.getvalue().split('\n')) > 0)
447
448 @unittest.skipIf(sys.platform == "win32", "Does not apply to Windows")
449 def test_ldshared_value(self):

Callers

nothing calls this directly

Calls 5

captured_stdoutFunction · 0.90
_mainFunction · 0.90
assertTrueMethod · 0.80
splitMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected