Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions numpydoc/tests/test_docscrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import jinja2
import pytest
from pytest import warns as assert_warns

from numpydoc.docscrape import ClassDoc, FunctionDoc, NumpyDocString
from numpydoc.docscrape_sphinx import (
Expand Down Expand Up @@ -907,7 +906,7 @@ class Dummy:

def test_see_also_trailing_comma_warning():
warnings.filterwarnings("error")
with assert_warns(
with pytest.warns(
Warning,
match="Unexpected comma or period after function list at index 43 of line .*",
):
Expand Down Expand Up @@ -1000,13 +999,12 @@ def test_trailing_colon():


def test_no_summary():
str(
SphinxDocString(
"""
Parameters
----------"""
)
ds = SphinxDocString(
"""
Parameters
----------"""
)
assert ds["Summary"] == [""]


def test_unicode():
Expand Down