summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Barnowski <rossbar@berkeley.edu>2020-06-30 15:02:35 -0700
committerEric Larson <larson.eric.d@gmail.com>2020-06-30 19:27:31 -0400
commit2d1f690494cebcabbd471cc813baf23ff6760368 (patch)
treedadb7d89005e946c789e8e00a01dd248618d06c7
parent5af61ae2b15b64f00fbb6712c0f2dae68846073c (diff)
downloadnumpydoc-2d1f690494cebcabbd471cc813baf23ff6760368.tar.gz
MAINT: Py3k rm explicit inherit from object.
-rw-r--r--numpydoc/tests/test_docscrape.py12
-rw-r--r--numpydoc/tests/tinybuild/numpydoc_test_module.py2
2 files changed, 7 insertions, 7 deletions
diff --git a/numpydoc/tests/test_docscrape.py b/numpydoc/tests/test_docscrape.py
index 2fb1fbd..f74a2a5 100644
--- a/numpydoc/tests/test_docscrape.py
+++ b/numpydoc/tests/test_docscrape.py
@@ -278,7 +278,7 @@ That should break...
assert_raises(ValueError, NumpyDocString, doc_text)
# if we have a numpydoc object, we know where the error came from
- class Dummy(object):
+ class Dummy:
"""
Dummy class.
@@ -817,7 +817,7 @@ def test_see_also_parse_error():
def test_see_also_print():
- class Dummy(object):
+ class Dummy:
"""
See Also
--------
@@ -858,7 +858,7 @@ Mope
This should be ignored and warned about
"""
- class BadSection(object):
+ class BadSection:
"""Class with bad section.
Nope
@@ -995,7 +995,7 @@ def test_use_blockquotes():
def test_class_members():
- class Dummy(object):
+ class Dummy:
"""
Dummy class.
@@ -1011,7 +1011,7 @@ def test_class_members():
"""Spammity index"""
return 0.95
- class Ignorable(object):
+ class Ignorable:
"""local class, to be ignored"""
pass
@@ -1327,7 +1327,7 @@ def test_templated_sections():
def test_nonstandard_property():
# test discovery of a property that does not satisfy isinstace(.., property)
- class SpecialProperty(object):
+ class SpecialProperty:
def __init__(self, axis=0, doc=""):
self.axis = axis
diff --git a/numpydoc/tests/tinybuild/numpydoc_test_module.py b/numpydoc/tests/tinybuild/numpydoc_test_module.py
index 3c073df..bf55979 100644
--- a/numpydoc/tests/tinybuild/numpydoc_test_module.py
+++ b/numpydoc/tests/tinybuild/numpydoc_test_module.py
@@ -18,7 +18,7 @@ References
__all__ = ['MyClass', 'my_function']
-class MyClass(object):
+class MyClass:
"""A class.
Reference [2]_