Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
datajanko committed Sep 15, 2019
2 parents a54e1b4 + 3f0e816 commit 10abc0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 5 additions & 5 deletions pandas/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,15 +445,15 @@ def pipe(obj, func, *args, **kwargs):
Parameters
----------
func : callable or tuple of (callable, string)
func : callable or tuple of (callable, str)
Function to apply to this object or, alternatively, a
``(callable, data_keyword)`` tuple where ``data_keyword`` is a
string indicating the keyword of `callable`` that expects the
object.
args : iterable, optional
positional arguments passed into ``func``.
kwargs : dict, optional
a dictionary of keyword arguments passed into ``func``.
*args : iterable, optional
Positional arguments passed into ``func``.
**kwargs : dict, optional
A dictionary of keyword arguments passed into ``func``.
Returns
-------
Expand Down
10 changes: 3 additions & 7 deletions pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import numpy as np
import pytest

from pandas.compat import PY36

from pandas.core.dtypes.common import is_datetime64_dtype, is_datetime64tz_dtype

import pandas as pd
Expand Down Expand Up @@ -538,11 +536,11 @@ def _to_sql_save_index(self):
assert ix_cols == [["A"]]

def _transaction_test(self):
self.pandasSQL.execute("CREATE TABLE test_trans (A INT, B TEXT)")

ins_sql = "INSERT INTO test_trans (A,B) VALUES (1, 'blah')"
with self.pandasSQL.run_transaction() as trans:
trans.execute("CREATE TABLE test_trans (A INT, B TEXT)")

# Make sure when transaction is rolled back, no rows get inserted
ins_sql = "INSERT INTO test_trans (A,B) VALUES (1, 'blah')"
try:
with self.pandasSQL.run_transaction() as trans:
trans.execute(ins_sql)
Expand Down Expand Up @@ -2213,8 +2211,6 @@ def test_to_sql_save_index(self):
self._to_sql_save_index()

def test_transactions(self):
if PY36:
pytest.skip("not working on python > 3.5")
self._transaction_test()

def _get_sqlite_column_type(self, table, column):
Expand Down

0 comments on commit 10abc0f

Please sign in to comment.