@@ -199,7 +199,7 @@ def test_github_ref(repo, unresolved_ref, resolved_ref):
199199 full_url = provider .get_repo_url ()
200200 assert full_url == f"https://github.com/{ repo } "
201201 ref = IOLoop ().run_sync (provider .get_resolved_ref )
202- if resolved_ref == True :
202+ if resolved_ref is True :
203203 # True means it should resolve, but don't check value
204204 assert ref is not None
205205 assert is_valid_sha1 (ref )
@@ -353,7 +353,7 @@ def test_long_spec(self):
353353
354354 def test_spec_with_no_suggestion (self ):
355355 spec = "short/master"
356- error = "^((?!Did you mean).)*$" . format ( spec ) # negative match
356+ error = "^((?!Did you mean).)*$" # negative match
357357 with self .assertRaisesRegex (ValueError , error ):
358358 user , repo , unresolved_ref = tokenize_spec (spec )
359359
@@ -393,7 +393,7 @@ def test_git_ref(url, unresolved_ref, resolved_ref):
393393 full_url = provider .get_repo_url ()
394394 assert full_url == url
395395 ref = IOLoop ().run_sync (provider .get_resolved_ref )
396- if resolved_ref == True :
396+ if resolved_ref is True :
397397 # True means it should resolve, but don't check value
398398 assert ref is not None
399399 assert is_valid_sha1 (ref )
@@ -461,7 +461,7 @@ def test_gitlab_ref(unresolved_ref, resolved_ref):
461461 full_url = provider .get_repo_url ()
462462 assert full_url == f'https://gitlab.com/{ namespace } .git'
463463 ref = IOLoop ().run_sync (provider .get_resolved_ref )
464- if resolved_ref == True :
464+ if resolved_ref is True :
465465 # True means it should resolve, but don't check value
466466 assert ref is not None
467467 assert is_valid_sha1 (ref )
@@ -501,7 +501,7 @@ def test_gist_ref(owner, gist_id, unresolved_ref, resolved_ref):
501501 full_url = provider .get_repo_url ()
502502 assert full_url == f"https://gist.github.com/{ owner } /{ gist_id } .git"
503503 ref = IOLoop ().run_sync (provider .get_resolved_ref )
504- if resolved_ref == True :
504+ if resolved_ref is True :
505505 # True means it should resolve, but don't check value
506506 assert ref is not None
507507 assert is_valid_sha1 (ref )
0 commit comments