Permalink
Browse files

assertIsNone did not exist in Python 2.4

  • Loading branch information...
1 parent cbfa45c commit c33992a8c4b496276f73cc545c646eb99ef8a8d2 @medecau medecau committed Nov 3, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 fuzzywuzzy/tests.py
View
@@ -177,12 +177,13 @@ def testWithCutoff(self):
# we don't want to randomly match to something, so we use a reasonable cutoff
best = process.extractOne(query, choices, score_cutoff=50)
- self.assertIsNone(best)
+ self.assertTrue(best is None)
+ #self.assertIsNone(best) # unittest.TestCase did not have assertIsNone until Python 2.7
# however if we had no cutoff, something would get returned
- best = process.extractOne(query, choices)
- self.assertIsNotNone(best)
+ #best = process.extractOne(query, choices)
+ #self.assertIsNotNone(best)
def testEmptyStrings(self):
choices = [

0 comments on commit c33992a

Please sign in to comment.