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

Method write_windows_console

Lib/test/test_os/test_os.py:376–382  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

374 [b"bacon", b"eggs", b"spam"])
375
376 def write_windows_console(self, *args):
377 retcode = subprocess.call(args,
378 # use a new console to not flood the test output
379 creationflags=subprocess.CREATE_NEW_CONSOLE,
380 # use a shell to hide the console window (SW_HIDE)
381 shell=True)
382 self.assertEqual(retcode, 0)
383
384 @unittest.skipUnless(sys.platform == 'win32',
385 'test specific to the Windows console')

Callers 1

Calls 2

callMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected