@@ -199,7 +199,7 @@ def test_github_ref(repo, unresolved_ref, resolved_ref):
199
199
full_url = provider .get_repo_url ()
200
200
assert full_url == f"https://github.com/{ repo } "
201
201
ref = IOLoop ().run_sync (provider .get_resolved_ref )
202
- if resolved_ref == True :
202
+ if resolved_ref is True :
203
203
# True means it should resolve, but don't check value
204
204
assert ref is not None
205
205
assert is_valid_sha1 (ref )
@@ -353,7 +353,7 @@ def test_long_spec(self):
353
353
354
354
def test_spec_with_no_suggestion (self ):
355
355
spec = "short/master"
356
- error = "^((?!Did you mean).)*$" . format ( spec ) # negative match
356
+ error = "^((?!Did you mean).)*$" # negative match
357
357
with self .assertRaisesRegex (ValueError , error ):
358
358
user , repo , unresolved_ref = tokenize_spec (spec )
359
359
@@ -393,7 +393,7 @@ def test_git_ref(url, unresolved_ref, resolved_ref):
393
393
full_url = provider .get_repo_url ()
394
394
assert full_url == url
395
395
ref = IOLoop ().run_sync (provider .get_resolved_ref )
396
- if resolved_ref == True :
396
+ if resolved_ref is True :
397
397
# True means it should resolve, but don't check value
398
398
assert ref is not None
399
399
assert is_valid_sha1 (ref )
@@ -461,7 +461,7 @@ def test_gitlab_ref(unresolved_ref, resolved_ref):
461
461
full_url = provider .get_repo_url ()
462
462
assert full_url == f'https://gitlab.com/{ namespace } .git'
463
463
ref = IOLoop ().run_sync (provider .get_resolved_ref )
464
- if resolved_ref == True :
464
+ if resolved_ref is True :
465
465
# True means it should resolve, but don't check value
466
466
assert ref is not None
467
467
assert is_valid_sha1 (ref )
@@ -501,7 +501,7 @@ def test_gist_ref(owner, gist_id, unresolved_ref, resolved_ref):
501
501
full_url = provider .get_repo_url ()
502
502
assert full_url == f"https://gist.github.com/{ owner } /{ gist_id } .git"
503
503
ref = IOLoop ().run_sync (provider .get_resolved_ref )
504
- if resolved_ref == True :
504
+ if resolved_ref is True :
505
505
# True means it should resolve, but don't check value
506
506
assert ref is not None
507
507
assert is_valid_sha1 (ref )
0 commit comments