diff options
author | Rohit Goswami <rog32@hi.is> | 2021-12-02 21:21:34 +0000 |
---|---|---|
committer | Rohit Goswami <rog32@hi.is> | 2021-12-05 22:23:55 +0000 |
commit | e4ca1fbcc96f956708f2deacb6ae1806cd132fe5 (patch) | |
tree | 6001fb86ee2e1982d712977fad8a5c7dc7a6bc89 /numpy/f2py/tests/test_abstract_interface.py | |
parent | cd24ca1ef578924bad8c5c31f8939e64e353c256 (diff) | |
download | numpy-e4ca1fbcc96f956708f2deacb6ae1806cd132fe5.tar.gz |
MAINT: Rework whitespace to pass PR checks
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
Diffstat (limited to 'numpy/f2py/tests/test_abstract_interface.py')
-rw-r--r-- | numpy/f2py/tests/test_abstract_interface.py | 11 |
1 files changed, 6 insertions, 5 deletions
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" |