File tree Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change 5
5
import pytest
6
6
from rdflib import Literal
7
7
from rdflib .graph import ConjunctiveGraph as Graph
8
- from six import PY3
9
8
from rdflib .store import NO_STORE , VALID_STORE
10
9
from rdflib .term import URIRef
11
10
12
11
from . import context_case
13
12
from . import graph_case
14
13
15
14
16
- if PY3 :
17
- try :
18
- import mysql
19
- assert mysql
20
- dialect = "mysqlconnector"
21
- except ImportError :
22
- pytest .skip ("MySQL-connector not found, skipping MySQL tests" ,
23
- allow_module_level = True )
24
- else :
25
- try :
26
- import MySQLdb
27
- assert MySQLdb
28
- dialect = "mysqldb"
29
- except ImportError :
30
- pytest .skip ("MySQLdb not found, skipping MySQL tests" ,
31
- allow_module_level = True )
15
+ try :
16
+ import MySQLdb
17
+ assert MySQLdb
18
+ dialect = "mysqldb"
19
+ except ImportError :
20
+ pytest .skip ("MySQLdb not found, skipping MySQL tests" ,
21
+ allow_module_level = True )
32
22
33
23
34
24
if os .environ .get ("DB" ) != "mysql" :
You can’t perform that action at this time.
0 commit comments