diff --git a/requirements.txt b/requirements.txt index c7a23474..1c83fde3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -MySQL-python +PyMySQL diff --git a/rhostest_tempest_plugin/lib/mysql.py b/rhostest_tempest_plugin/lib/mysql.py index 3ea66285..d171cb2f 100644 --- a/rhostest_tempest_plugin/lib/mysql.py +++ b/rhostest_tempest_plugin/lib/mysql.py @@ -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'],