Skip to content

Commit 10abc0f

Browse files
committed
2 parents a54e1b4 + 3f0e816 commit 10abc0f

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

pandas/core/common.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,15 @@ def pipe(obj, func, *args, **kwargs):
445445
446446
Parameters
447447
----------
448-
func : callable or tuple of (callable, string)
448+
func : callable or tuple of (callable, str)
449449
Function to apply to this object or, alternatively, a
450450
``(callable, data_keyword)`` tuple where ``data_keyword`` is a
451451
string indicating the keyword of `callable`` that expects the
452452
object.
453-
args : iterable, optional
454-
positional arguments passed into ``func``.
455-
kwargs : dict, optional
456-
a dictionary of keyword arguments passed into ``func``.
453+
*args : iterable, optional
454+
Positional arguments passed into ``func``.
455+
**kwargs : dict, optional
456+
A dictionary of keyword arguments passed into ``func``.
457457
458458
Returns
459459
-------

pandas/tests/io/test_sql.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import numpy as np
2727
import pytest
2828

29-
from pandas.compat import PY36
30-
3129
from pandas.core.dtypes.common import is_datetime64_dtype, is_datetime64tz_dtype
3230

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

540538
def _transaction_test(self):
541-
self.pandasSQL.execute("CREATE TABLE test_trans (A INT, B TEXT)")
542-
543-
ins_sql = "INSERT INTO test_trans (A,B) VALUES (1, 'blah')"
539+
with self.pandasSQL.run_transaction() as trans:
540+
trans.execute("CREATE TABLE test_trans (A INT, B TEXT)")
544541

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

22152213
def test_transactions(self):
2216-
if PY36:
2217-
pytest.skip("not working on python > 3.5")
22182214
self._transaction_test()
22192215

22202216
def _get_sqlite_column_type(self, table, column):

0 commit comments

Comments
 (0)