diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 22844f568eded..1311cf50bc7b7 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -372,7 +372,7 @@ def _read_sql_iris_named_parameter(self): iris_frame = self.pandasSQL.read_query(query, params=params) self._check_iris_loaded_frame(iris_frame) - def _to_sql(self, method=None): + def _to_sql(self, method='default'): self.drop_table('test_frame1') self.pandasSQL.to_sql(self.test_frame1, 'test_frame1', method=method)