Skip to content

Commit f3a33f7

Browse files
committed
Adding six.assertRaisesRegx for Python27 test compat
1 parent 5ffc72a commit f3a33f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_sqlalchemy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
except ImportError:
66
from mock import patch
77

8+
import six
9+
810
from rdflib import (
911
ConjunctiveGraph,
1012
Literal,
@@ -45,7 +47,7 @@ def test_success(self):
4547

4648
def test_no_url(self):
4749
with patch('rdflib_sqlalchemy.store.sqlalchemy'):
48-
with self.assertRaisesRegex(Exception, '.*url.*'):
50+
with six.assertRaisesRegex(self, Exception, '.*url.*'):
4951
self.graph.open({'random_key': 'something'}, create=True)
5052

5153

0 commit comments

Comments
 (0)