(cmd, **kwargs)
| 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): |
nothing calls this directly
no test coverage detected