Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Try getting the error message in response_handler #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed
Prev Previous commit
Next Next commit
Change expected exception
  • Loading branch information
alexandresobolevski committed Dec 22, 2016
commit 20d8b3bb6985061b5858f0fdc96dbcc09eb2c8c9
4 changes: 2 additions & 2 deletions plotly/tests/test_core/test_file/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_duplicate_folders(self):
py.file_ops.mkdirs(first_folder)
try:
py.file_ops.mkdirs(first_folder)
except requests.exceptions.RequestException as e:
self.assertTrue(400 <= e.response.status_code < 500)
except PlotlyRequestError as e:
self.assertTrue(400 <= e.status_code < 500)
else:
self.fail('Expected this to fail!')