Skip to content

finish removing "six" usage #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
install_requires=[
"alembic>=0.8.8",
"rdflib>=6,<8",
"six>=1.10.0",
"SQLAlchemy>=2.0.23",
],
entry_points={
Expand Down
10 changes: 2 additions & 8 deletions test/test_sqlalchemy.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import unittest

try:
from unittest.mock import patch, MagicMock
except ImportError:
from mock import patch, MagicMock

import six
from unittest.mock import patch, MagicMock

from rdflib import (
ConjunctiveGraph,
Expand Down Expand Up @@ -48,7 +42,7 @@ def test_success(self):

def test_no_url(self):
with patch('rdflib_sqlalchemy.store.sqlalchemy'):
with six.assertRaisesRegex(self, Exception, '.*url.*'):
with self.assertRaisesRegex(Exception, '.*url.*'):
self.graph.open({'random_key': 'something'}, create=True)


Expand Down