Skip to content

Meetup: Fixed the last test by adding parentheses to the function #475

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 1 commit into from
Closed

Conversation

Ef-Eff
Copy link

@Ef-Eff Ef-Eff commented Jun 4, 2017

It was initially broken, doing this made the test work as intended.

@@ -399,8 +399,8 @@ def test_fifth_monday_of_march_2015(self):
meetup_day(2015, 3, 'Monday', '5th'), date(2015, 3, 30))

def test_nonexistent_fifth_monday_of_february_2015(self):
self.assertRaises(MeetupDayException, meetup_day, 2015, 2, 'Monday',
'5th')
self.assertRaises(MeetupDayException, meetup_day(2015, 2, 'Monday',
Copy link
Author

Choose a reason for hiding this comment

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

Added the parentheses

@behrtam
Copy link
Contributor

behrtam commented Jun 4, 2017

You are using the method assertRaises() incorrectly. See #476

@behrtam behrtam closed this Jun 4, 2017
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