Replaces MySQLdb with PyMySQL

Pure python implementation so you don't have to deal with mysql headers
This commit is contained in:
Joe H. Rahme 2016-09-27 17:12:50 +02:00
parent 7060581a6f
commit d50264aaca
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
MySQL-python
PyMySQL

View File

@ -12,7 +12,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import MySQLdb
import pymysql
from tempest import config
@ -31,7 +31,7 @@ class Client(object):
}
def connect(self):
return MySQLdb.connect(
return pymysql.connect(
self.db_config['host'],
self.db_config['username'],
self.db_config['password'],