@@ -211,7 +211,10 @@ def test_uninstall(self):
211
211
ensurepip ._uninstall_helper ()
212
212
213
213
self .run_pip .assert_called_once_with (
214
- ["uninstall" , "-y" , "pip" , "setuptools" ]
214
+ [
215
+ "uninstall" , "-y" , "--disable-pip-version-check" , "pip" ,
216
+ "setuptools" ,
217
+ ]
215
218
)
216
219
217
220
@requires_usable_pip
@@ -220,7 +223,10 @@ def test_uninstall_with_verbosity_1(self):
220
223
ensurepip ._uninstall_helper (verbosity = 1 )
221
224
222
225
self .run_pip .assert_called_once_with (
223
- ["uninstall" , "-y" , "-v" , "pip" , "setuptools" ]
226
+ [
227
+ "uninstall" , "-y" , "--disable-pip-version-check" , "-v" , "pip" ,
228
+ "setuptools" ,
229
+ ]
224
230
)
225
231
226
232
@requires_usable_pip
@@ -229,7 +235,10 @@ def test_uninstall_with_verbosity_2(self):
229
235
ensurepip ._uninstall_helper (verbosity = 2 )
230
236
231
237
self .run_pip .assert_called_once_with (
232
- ["uninstall" , "-y" , "-vv" , "pip" , "setuptools" ]
238
+ [
239
+ "uninstall" , "-y" , "--disable-pip-version-check" , "-vv" , "pip" ,
240
+ "setuptools" ,
241
+ ]
233
242
)
234
243
235
244
@requires_usable_pip
@@ -238,7 +247,10 @@ def test_uninstall_with_verbosity_3(self):
238
247
ensurepip ._uninstall_helper (verbosity = 3 )
239
248
240
249
self .run_pip .assert_called_once_with (
241
- ["uninstall" , "-y" , "-vvv" , "pip" , "setuptools" ]
250
+ [
251
+ "uninstall" , "-y" , "--disable-pip-version-check" , "-vvv" ,
252
+ "pip" , "setuptools" ,
253
+ ]
242
254
)
243
255
244
256
@requires_usable_pip
@@ -336,7 +348,10 @@ def test_basic_uninstall(self):
336
348
ensurepip ._uninstall ._main ([])
337
349
338
350
self .run_pip .assert_called_once_with (
339
- ["uninstall" , "-y" , "pip" , "setuptools" ]
351
+ [
352
+ "uninstall" , "-y" , "--disable-pip-version-check" , "pip" ,
353
+ "setuptools" ,
354
+ ]
340
355
)
341
356
342
357
0 commit comments