Skip to content

Commit 2fc7d04

Browse files
authored
Merge pull request #6187 from blueyed/minor
Minor fixes
2 parents f91bf48 + 772dfc4 commit 2fc7d04

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/_pytest/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ def addinivalue_line(self, name, line):
974974
def getini(self, name: str):
975975
""" return configuration value from an :ref:`ini file <inifiles>`. If the
976976
specified name hasn't been registered through a prior
977-
:py:func:`parser.addini <_pytest.config.Parser.addini>`
977+
:py:func:`parser.addini <_pytest.config.argparsing.Parser.addini>`
978978
call (usually from a plugin), a ValueError is raised. """
979979
try:
980980
return self._inicache[name]

src/_pytest/config/argparsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def getgroup(self, name, description="", after=None):
4747
4848
The returned group object has an ``addoption`` method with the same
4949
signature as :py:func:`parser.addoption
50-
<_pytest.config.Parser.addoption>` but will be shown in the
50+
<_pytest.config.argparsing.Parser.addoption>` but will be shown in the
5151
respective group in the output of ``pytest. --help``.
5252
"""
5353
for group in self._groups:

src/_pytest/hookspec.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def pytest_addoption(parser, pluginmanager):
4545
files situated at the tests root directory due to how pytest
4646
:ref:`discovers plugins during startup <pluginorder>`.
4747
48-
:arg _pytest.config.Parser parser: To add command line options, call
49-
:py:func:`parser.addoption(...) <_pytest.config.Parser.addoption>`.
48+
:arg _pytest.config.argparsing.Parser parser: To add command line options, call
49+
:py:func:`parser.addoption(...) <_pytest.config.argparsing.Parser.addoption>`.
5050
To add ini-file values call :py:func:`parser.addini(...)
51-
<_pytest.config.Parser.addini>`.
51+
<_pytest.config.argparsing.Parser.addini>`.
5252
5353
:arg _pytest.config.PytestPluginManager pluginmanager: pytest plugin manager,
5454
which can be used to install :py:func:`hookspec`'s or :py:func:`hookimpl`'s
@@ -148,7 +148,7 @@ def pytest_load_initial_conftests(early_config, parser, args):
148148
149149
:param _pytest.config.Config early_config: pytest config object
150150
:param list[str] args: list of arguments passed on the command line
151-
:param _pytest.config.Parser parser: to add command line options
151+
:param _pytest.config.argparsing.Parser parser: to add command line options
152152
"""
153153

154154

src/_pytest/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def __init__(self, config: Config, file=None) -> None:
254254
# self.writer will be deprecated in pytest-3.4
255255
self.writer = self._tw
256256
self._screen_width = self._tw.fullwidth
257-
self.currentfspath = None # type: Optional[int]
257+
self.currentfspath = None # type: Any
258258
self.reportchars = getreportopt(config)
259259
self.hasmarkup = self._tw.hasmarkup
260260
self.isatty = file.isatty()

src/_pytest/warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _issue_warning_captured(warning, hook, stacklevel):
138138
"""
139139
This function should be used instead of calling ``warnings.warn`` directly when we are in the "configure" stage:
140140
at this point the actual options might not have been set, so we manually trigger the pytest_warning_captured
141-
hook so we can display this warnings in the terminal. This is a hack until we can sort out #2891.
141+
hook so we can display these warnings in the terminal. This is a hack until we can sort out #2891.
142142
143143
:param warning: the warning instance.
144144
:param hook: the hook caller

0 commit comments

Comments
 (0)