Commit 5f684a46 authored by matthijs's avatar matthijs
parents fe446e41 de8ac33f
......@@ -132,7 +132,7 @@ class TestException(unittest.TestCase):
try:
# an unsupported operation for IndexFlat
index.add_with_ids(a, b)
except RuntimeError, e:
except RuntimeError as e:
assert 'add_with_ids not implemented' in str(e)
else:
assert False, 'exception did not fire???'
......@@ -141,7 +141,7 @@ class TestException(unittest.TestCase):
try:
faiss.index_factory(12, 'IVF256,Flat,PQ8')
except RuntimeError, e:
except RuntimeError as e:
assert 'could not parse' in str(e)
else:
assert False, 'exception did not fire???'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment