Skip to content

Commit

Permalink
changed asserRaisesRegexp to assertRaises to make it 2.6 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
devashishd12 committed Apr 5, 2016
1 parent 21d295a commit ef103b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/test/test_normmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def testTransform(self):

def testInit(self):
# Test if error messages raised on unsupported norm
with self.assertRaisesRegexp(ValueError, 'not a supported norm'):
with self.assertRaises(ValueError):
model = normmodel.Normmodel(self.corpus, norm='l0')

def testPersistence(self):
Expand Down

0 comments on commit ef103b5

Please sign in to comment.