Skip to content

Commit

Permalink
Update test_config.py
Browse files Browse the repository at this point in the history
Wrong way of checking for none fixed
  • Loading branch information
copyninja committed Jun 5, 2014
1 parent 60b932d commit 381e3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silpa/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_config_error_handling(self):
self.assertEqual(self.option, e.option)
self.assertEqual(self.section, e.section)

if not self.option:
if self.option:
error = e.__str__()
self.assertIn(self.option, error)
self.assertIn(self.section, error)
Expand Down

0 comments on commit 381e3bc

Please sign in to comment.