summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/test_module_doc.py
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2021-12-02 21:21:34 +0000
committerRohit Goswami <rog32@hi.is>2021-12-05 22:23:55 +0000
commite4ca1fbcc96f956708f2deacb6ae1806cd132fe5 (patch)
tree6001fb86ee2e1982d712977fad8a5c7dc7a6bc89 /numpy/f2py/tests/test_module_doc.py
parentcd24ca1ef578924bad8c5c31f8939e64e353c256 (diff)
downloadnumpy-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_module_doc.py')
-rw-r--r--numpy/f2py/tests/test_module_doc.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/numpy/f2py/tests/test_module_doc.py b/numpy/f2py/tests/test_module_doc.py
index 92c03c003..b66cff000 100644
--- a/numpy/f2py/tests/test_module_doc.py
+++ b/numpy/f2py/tests/test_module_doc.py
@@ -8,19 +8,23 @@ from numpy.testing import assert_equal, IS_PYPY
class TestModuleDocString(util.F2PyTest):
- sources = [util.getpath('tests', 'src', 'module_data', 'module_data_docstring.f90')]
+ sources = [
+ util.getpath("tests", "src", "module_data",
+ "module_data_docstring.f90")
+ ]
- @pytest.mark.skipif(sys.platform=='win32',
- reason='Fails with MinGW64 Gfortran (Issue #9673)')
+ @pytest.mark.skipif(sys.platform == "win32",
+ reason="Fails with MinGW64 Gfortran (Issue #9673)")
@pytest.mark.xfail(IS_PYPY,
reason="PyPy cannot modify tp_doc after PyType_Ready")
def test_module_docstring(self):
- assert_equal(self.module.mod.__doc__,
- textwrap.dedent('''\
+ assert_equal(
+ self.module.mod.__doc__,
+ textwrap.dedent("""\
i : 'i'-scalar
x : 'i'-array(4)
a : 'f'-array(2,3)
b : 'f'-array(-1,-1), not allocated\x00
foo()\n
- Wrapper for ``foo``.\n\n''')
- )
+ Wrapper for ``foo``.\n\n"""),
+ )