def setUp(self): self.conn = self.connect() self.pandasSQL = sql.PandasSQLLegacy(self.conn, 'sqlite') self._load_iris_data() self._load_test1_data()
def setUp(self): try: import pymysql self.driver = pymysql except ImportError: raise nose.SkipTest self.conn = self.connect() self.pandasSQL = sql.PandasSQLLegacy(self.conn, 'mysql') self._load_iris_data() self._load_test1_data()
def setUp(self): try: import pymysql self.driver = pymysql except ImportError: raise nose.SkipTest('pymysql not installed') try: self.conn = self.connect() except self.driver.err.OperationalError: raise nose.SkipTest("Can't connect to MySQL server") self.pandasSQL = sql.PandasSQLLegacy(self.conn, 'mysql') self._load_iris_data() self._load_test1_data()