From e4ca1fbcc96f956708f2deacb6ae1806cd132fe5 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Thu, 2 Dec 2021 21:21:34 +0000 Subject: MAINT: Rework whitespace to pass PR checks Co-authored-by: Charles Harris --- numpy/f2py/tests/test_abstract_interface.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'numpy/f2py/tests/test_abstract_interface.py') diff --git a/numpy/f2py/tests/test_abstract_interface.py b/numpy/f2py/tests/test_abstract_interface.py index 41b7d21c4..7aecf57fc 100644 --- a/numpy/f2py/tests/test_abstract_interface.py +++ b/numpy/f2py/tests/test_abstract_interface.py @@ -5,9 +5,9 @@ from numpy.f2py import crackfortran class TestAbstractInterface(util.F2PyTest): - suffix = '.f90' + suffix = ".f90" - skip = ['add1', 'add2'] + skip = ["add1", "add2"] code = textwrap.dedent(""" module ops_module @@ -52,7 +52,8 @@ class TestAbstractInterface(util.F2PyTest): def test_parse_abstract_interface(self, tmp_path): # Test gh18403 f_path = Path(tmp_path / "gh18403_mod.f90") - f_path.write_text(textwrap.dedent("""\ + f_path.write_text( + textwrap.dedent("""\ module test abstract interface subroutine foo() @@ -62,5 +63,5 @@ class TestAbstractInterface(util.F2PyTest): """)) mod = crackfortran.crackfortran([str(f_path)]) assert len(mod) == 1 - assert len(mod[0]['body']) == 1 - assert mod[0]['body'][0]['block'] == 'abstract interface' + assert len(mod[0]["body"]) == 1 + assert mod[0]["body"][0]["block"] == "abstract interface" -- cgit v1.2.1