Skip to content

Commit 2f0f100

Browse files
committed
lint
1 parent 9f6ebc9 commit 2f0f100

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pandas/tests/extension/base/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class TestMyDtype(BaseDtypeTests):
5353
BaseArithmeticOpsTests,
5454
BaseComparisonOpsTests,
5555
BaseOpsUtil,
56-
BaseUnaryOpsTests,
5756
BaseRoundingTests,
57+
BaseUnaryOpsTests,
5858
)
5959
from pandas.tests.extension.base.printing import BasePrintingTests
6060
from pandas.tests.extension.base.reduce import ( # noqa: F401

pandas/tests/extension/base/ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,9 @@ def test_unary_ufunc_dunder_equivalence(self, data, ufunc):
264264
alt = ufunc(data)
265265
tm.assert_extension_array_equal(result, alt)
266266

267+
267268
class BaseRoundingTests:
268269
def test_round(self, data):
269270
result = pd.Series(data).round()
270-
expected = pd.Series(np.round(data), dtype = data.dtype)
271+
expected = pd.Series(np.round(data), dtype=data.dtype)
271272
tm.assert_series_equal(result, expected)

pandas/tests/extension/test_masked.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,10 @@ class TestParsing(base.BaseParsingTests):
434434
class Test2DCompat(base.Dim2CompatTests):
435435
pass
436436

437+
437438
class TestRounding(base.BaseRoundingTests):
438439
def test_round(self, data, request):
439440
if data.dtype == "boolean":
440-
mark = pytest.mark.xfail(
441-
reason="Cannot round boolean dtype"
442-
)
441+
mark = pytest.mark.xfail(reason="Cannot round boolean dtype")
443442
request.node.add_marker(mark)
444-
super().test_round(data)
443+
super().test_round(data)

0 commit comments

Comments
 (0)