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

Method pip_cmd_checker

Lib/test/test_venv.py:249–261  ·  view source on GitHub ↗
(cmd, **kwargs)

Source from the content-addressed store, hash-verified

247 expect_exe = os.path.normcase(os.path.realpath(expect_exe))
248
249 def pip_cmd_checker(cmd, **kwargs):
250 cmd[0] = os.path.normcase(cmd[0])
251 self.assertEqual(
252 cmd,
253 [
254 expect_exe,
255 '-m',
256 'pip',
257 'install',
258 '--upgrade',
259 'pip',
260 ]
261 )
262
263 fake_context = builder.ensure_directories(fake_env_dir)
264 with patch('venv.subprocess.check_output', pip_cmd_checker):

Callers

nothing calls this directly

Calls 2

normcaseMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected