diff -r 49cd6f61935e -r a057b4f4ce73 src/eric7/Testing/Interfaces/PytestRunner.py --- a/src/eric7/Testing/Interfaces/PytestRunner.py Sat Oct 26 11:33:10 2024 +0200 +++ b/src/eric7/Testing/Interfaces/PytestRunner.py Sun Oct 27 12:24:36 2024 +0100 @@ -134,14 +134,12 @@ self.__wasSkipped = False self.__wasXfail = False - def pytest_report_header(self, config, _startdir): + def pytest_report_header(self, config): """ Public method called by pytest before any reporting. @param config reference to the configuration object @type Config - @param _startdir starting directory (unused) - @type LocalPath """ self.__writer.write({"event": "config", "root": str(config.rootdir)}) @@ -178,13 +176,13 @@ } ) - def pytest_runtest_logstart(self, nodeid, _location): + def pytest_runtest_logstart(self, nodeid, location): # noqa: U100 """ Public method called by pytest before running a test. @param nodeid node id of the test item @type str - @param _location tuple containing the file name, the line number and + @param location tuple containing the file name, the line number and the test name (unused) @type tuple of (str, int, str) """ @@ -270,24 +268,24 @@ self.__writer.write(data) - def pytest_sessionstart(self, _session): + def pytest_sessionstart(self, session): # noqa: U100 """ Public method called by pytest before performing collection and entering the run test loop. - @param _session reference to the session object (unused) + @param session reference to the session object (unused) @type Session """ self.__totalStartTime = time.monotonic_ns() self.__testsRun = 0 - def pytest_sessionfinish(self, _session, _exitstatus): + def pytest_sessionfinish(self, session, exitstatus): # noqa: U100 """ Public method called by pytest after the whole test run finished. - @param _session reference to the session object (unused) + @param session reference to the session object (unused) @type Session - @param _exitstatus exit status (unused) + @param exitstatus exit status (unused) @type int or ExitCode """ stopTime = time.monotonic_ns()