MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_main

Method test_main

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected