Permalink
Browse files

python 2.6 and below does not have unittest.skip

  • Loading branch information...
1 parent 8007422 commit 2d15174353ff44dd91bd00d9aba1b959a5fa8e37 @mcdonc mcdonc committed Apr 17, 2011
Showing with 12 additions and 12 deletions.
  1. +12 −12 shootout/tests/test_models.py
@@ -183,18 +183,18 @@ def test_add_comments(self):
self.assertEqual(idea.comments, [comment1, comment2])
- @unittest.skip("no idea how to force floats instead of ints here")
- def test_hit_percentage(self):
- idea = self._addIdea()
- idea.hits = 3
- idea.misses = 7
- self.session.flush()
- idea = self._getIdea(idea.idea_id)
- self.assertEqual(idea.hit_percentage, 30)
- idea.hits = 13
- self.session.flush()
- idea = self._getIdea(idea.idea_id)
- self.assertEqual(idea.hit_percentage, 65)
+ # @unittest.skip("no idea how to force floats instead of ints here")
+ # def test_hit_percentage(self):
+ # idea = self._addIdea()
+ # idea.hits = 3
+ # idea.misses = 7
+ # self.session.flush()
+ # idea = self._getIdea(idea.idea_id)
+ # self.assertEqual(idea.hit_percentage, 30)
+ # idea.hits = 13
+ # self.session.flush()
+ # idea = self._getIdea(idea.idea_id)
+ # self.assertEqual(idea.hit_percentage, 65)
def test_total_votes(self):
idea = self._addIdea()

0 comments on commit 2d15174

Please sign in to comment.