Skip to content

Commit

Permalink
remove unwanted check
Browse files Browse the repository at this point in the history
  • Loading branch information
martenson committed Apr 11, 2016
1 parent e5ce5df commit cd1e1f5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/shed_functional/base/twilltestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,6 @@ def commit_and_push( self, repository, hgrepo, options, username, password ):
commands.commit( ui.ui(), hgrepo, **options )
try:
commands.push( ui.ui(), hgrepo, dest=url )
except Abort as a:
message = a
if 'authorization failed' in message:
return False
else:
raise
except Exception as e:
if str(e).find('Pushing to Tool Shed is disabled') != -1:
return False
Expand All @@ -277,12 +271,6 @@ def commit_and_push( self, repository, hgrepo, options, username, password ):
def __push_again( hgrepo, url ):
try:
commands.push( ui.ui(), hgrepo, dest=url )
except Abort as a:
message = a
if 'authorization failed' in message:
return False
else:
raise
except Exception as e:
if str(e).find('Pushing to Tool Shed is disabled') != -1:
return False
Expand Down

0 comments on commit cd1e1f5

Please sign in to comment.