Skip to content

Conversation

@bdyetton
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best to raise rather than assert, asserts can actually be disabled and therefore ignored in production environments.

@fabianvf
Copy link
Contributor

1st pass done 👍 Just 2 super minor comments. Also, it looks like you have fallen out of date with develop, so you'll need to pull it in.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test that causes this error to be raised? You can assert that certain errors are thrown with the assert_raises pytest function:

import pytest

def test_zero_division():
    with pytest.raises(ZeroDivisionError):
        1 / 0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done...

@fabianvf fabianvf changed the title fixed pyhton 3 bug fixed python 3 bug Jun 19, 2015
fabianvf added a commit that referenced this pull request Jun 19, 2015
@fabianvf fabianvf merged commit 575960c into CenterForOpenScience:develop Jun 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants