From de5aa3847e032382447bdcf5ca8397d8a0be1208 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 7 Mar 2019 12:53:47 -0300 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: nicoddemus --- src/_pytest/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 567d3ee67..07767f391 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -245,7 +245,7 @@ class PyobjMixin(PyobjContext): @property def obj(self): - """underlying python object""" + """Underlying Python object.""" obj = getattr(self, "_obj", None) if obj is None: self._obj = obj = self._getobj() @@ -260,7 +260,7 @@ class PyobjMixin(PyobjContext): self._obj = value def _getobj(self): - """Gets the underlying python object. May be overwritten by subclasses.""" + """Gets the underlying Python object. May be overwritten by subclasses.""" return getattr(self.parent.obj, self.name) def getmodpath(self, stopatmodule=True, includemodule=False):