Skip to content

Commit

Permalink
Disable exceptions for file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fp12 committed Jan 12, 2017
1 parent ef7f811 commit 6ba820d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ def test_b_text(self):
@unittest.expectedFailure
@async_test
def test_c_file(self):
challonge.USE_EXCEPTIONS = False

random_name = get_random_name()
t = yield from self.user.create_tournament(random_name, random_name)
yield from t.allow_attachments()
Expand All @@ -634,6 +636,7 @@ def test_c_file(self):
yield from self.user.destroy_tournament(t)

print('well it worked...', end=' ')
challonge.USE_EXCEPTIONS = True
self.fail('expected failure that sometimes work')


Expand Down

0 comments on commit 6ba820d

Please sign in to comment.