From 3718c825103f8a957f5024350353ee0db3e64bab Mon Sep 17 00:00:00 2001 From: Laurent Mutricy Date: Tue, 2 Jul 2024 22:42:05 +0200 Subject: [PATCH] black pre-commit run --- pint_pandas/testsuite/test_issues.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pint_pandas/testsuite/test_issues.py b/pint_pandas/testsuite/test_issues.py index 459b782..464a429 100644 --- a/pint_pandas/testsuite/test_issues.py +++ b/pint_pandas/testsuite/test_issues.py @@ -261,14 +261,16 @@ def test_roundtrip(self): class TestIssue137(BaseExtensionTests): - @pytest.mark.xfail(pandas_version_info < (3, 0, 0), - reason="requires pandas>=3.0.0", - raises=TypeError) + @pytest.mark.xfail( + pandas_version_info < (3, 0, 0), + reason="requires pandas>=3.0.0", + raises=TypeError, + ) def test_eval(self): df = pd.DataFrame( { - 'a': pd.Series([1., 2., 3.], dtype='pint[meter]'), - 'b': pd.Series([4., 5., 6.], dtype='pint[second]') + "a": pd.Series([1.0, 2.0, 3.0], dtype="pint[meter]"), + "b": pd.Series([4.0, 5.0, 6.0], dtype="pint[second]"), } ) - tm.assert_series_equal(df.eval('a / b'), df['a'] / df['b']) + tm.assert_series_equal(df.eval("a / b"), df["a"] / df["b"])