Skip to content

Commit

Permalink
black pre-commit run
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Mutricy committed Jul 2, 2024
1 parent e1e2d16 commit 3718c82
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pint_pandas/testsuite/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

0 comments on commit 3718c82

Please sign in to comment.