@@ -184,9 +184,7 @@ def test_git_with_sha1_revisions(script):
184
184
'git' , 'rev-parse' , 'HEAD~1' ,
185
185
cwd = version_pkg_path ,
186
186
).stdout .strip ()
187
- version = _install_version_pkg (
188
- script , version_pkg_path , rev = sha1 , expect_stderr = True ,
189
- )
187
+ version = _install_version_pkg (script , version_pkg_path , rev = sha1 )
190
188
assert '0.1' == version
191
189
192
190
@@ -200,9 +198,7 @@ def test_git_with_short_sha1_revisions(script):
200
198
'git' , 'rev-parse' , 'HEAD~1' ,
201
199
cwd = version_pkg_path ,
202
200
).stdout .strip ()[:7 ]
203
- version = _install_version_pkg (
204
- script , version_pkg_path , rev = sha1 , expect_stderr = True ,
205
- )
201
+ version = _install_version_pkg (script , version_pkg_path , rev = sha1 )
206
202
assert '0.1' == version
207
203
208
204
@@ -212,11 +208,7 @@ def test_git_with_branch_name_as_revision(script):
212
208
"""
213
209
version_pkg_path = _create_test_package (script )
214
210
branch = 'test_branch'
215
- script .run (
216
- 'git' , 'checkout' , '-b' , branch ,
217
- expect_stderr = True ,
218
- cwd = version_pkg_path ,
219
- )
211
+ script .run ('git' , 'checkout' , '-b' , branch , cwd = version_pkg_path )
220
212
_change_test_package_version (script , version_pkg_path )
221
213
version = _install_version_pkg (script , version_pkg_path , rev = branch )
222
214
assert 'some different version' == version
@@ -227,11 +219,7 @@ def test_git_with_tag_name_as_revision(script):
227
219
Git backend should be able to install from tag names
228
220
"""
229
221
version_pkg_path = _create_test_package (script )
230
- script .run (
231
- 'git' , 'tag' , 'test_tag' ,
232
- expect_stderr = True ,
233
- cwd = version_pkg_path ,
234
- )
222
+ script .run ('git' , 'tag' , 'test_tag' , cwd = version_pkg_path )
235
223
_change_test_package_version (script , version_pkg_path )
236
224
version = _install_version_pkg (script , version_pkg_path , rev = 'test_tag' )
237
225
assert '0.1' == version
@@ -241,7 +229,7 @@ def _add_ref(script, path, ref):
241
229
"""
242
230
Add a new ref to a repository at the given path.
243
231
"""
244
- script .run ('git' , 'update-ref' , ref , 'HEAD' , expect_stderr = True , cwd = path )
232
+ script .run ('git' , 'update-ref' , ref , 'HEAD' , cwd = path )
245
233
246
234
247
235
def test_git_install_ref (script ):
@@ -253,7 +241,7 @@ def test_git_install_ref(script):
253
241
_change_test_package_version (script , version_pkg_path )
254
242
255
243
version = _install_version_pkg (
256
- script , version_pkg_path , rev = 'refs/foo/bar' , expect_stderr = True ,
244
+ script , version_pkg_path , rev = 'refs/foo/bar' ,
257
245
)
258
246
assert '0.1' == version
259
247
@@ -267,14 +255,12 @@ def test_git_install_then_install_ref(script):
267
255
_add_ref (script , version_pkg_path , 'refs/foo/bar' )
268
256
_change_test_package_version (script , version_pkg_path )
269
257
270
- version = _install_version_pkg (
271
- script , version_pkg_path , expect_stderr = True ,
272
- )
258
+ version = _install_version_pkg (script , version_pkg_path )
273
259
assert 'some different version' == version
274
260
275
261
# Now install the ref.
276
262
version = _install_version_pkg (
277
- script , version_pkg_path , rev = 'refs/foo/bar' , expect_stderr = True ,
263
+ script , version_pkg_path , rev = 'refs/foo/bar' ,
278
264
)
279
265
assert '0.1' == version
280
266
@@ -388,13 +374,8 @@ def test_editable__branch_with_sha_same_as_default(script):
388
374
"""
389
375
version_pkg_path = _create_test_package (script )
390
376
# Create a second branch with the same SHA.
391
- script .run (
392
- 'git' , 'branch' , 'develop' , expect_stderr = True ,
393
- cwd = version_pkg_path ,
394
- )
395
- _install_version_pkg_only (
396
- script , version_pkg_path , rev = 'develop' , expect_stderr = True
397
- )
377
+ script .run ('git' , 'branch' , 'develop' , cwd = version_pkg_path )
378
+ _install_version_pkg_only (script , version_pkg_path , rev = 'develop' )
398
379
399
380
branch = _get_editable_branch (script , 'version-pkg' )
400
381
assert branch == 'develop'
@@ -410,16 +391,11 @@ def test_editable__branch_with_sha_different_from_default(script):
410
391
"""
411
392
version_pkg_path = _create_test_package (script )
412
393
# Create a second branch.
413
- script .run (
414
- 'git' , 'branch' , 'develop' , expect_stderr = True ,
415
- cwd = version_pkg_path ,
416
- )
394
+ script .run ('git' , 'branch' , 'develop' , cwd = version_pkg_path )
417
395
# Add another commit to the master branch to give it a different sha.
418
396
_change_test_package_version (script , version_pkg_path )
419
397
420
- version = _install_version_pkg (
421
- script , version_pkg_path , rev = 'develop' , expect_stderr = True
422
- )
398
+ version = _install_version_pkg (script , version_pkg_path , rev = 'develop' )
423
399
assert version == '0.1'
424
400
425
401
branch = _get_editable_branch (script , 'version-pkg' )
@@ -437,10 +413,7 @@ def test_editable__non_master_default_branch(script):
437
413
version_pkg_path = _create_test_package (script )
438
414
# Change the default branch of the remote repo to a name that is
439
415
# alphabetically after "master".
440
- script .run (
441
- 'git' , 'checkout' , '-b' , 'release' , expect_stderr = True ,
442
- cwd = version_pkg_path ,
443
- )
416
+ script .run ('git' , 'checkout' , '-b' , 'release' , cwd = version_pkg_path )
444
417
_install_version_pkg_only (script , version_pkg_path )
445
418
446
419
branch = _get_editable_branch (script , 'version-pkg' )
0 commit comments