Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1979296 Details for
Bug 2226304
python-pytest-flake8: FTBFS in Fedora rawhide/f39
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh89 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
build.log
build.log (text/plain), 32.00 KB, created by
Fedora Release Engineering
on 2023-07-25 19:43:37 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Fedora Release Engineering
Created:
2023-07-25 19:43:37 UTC
Size:
32.00 KB
patch
obsolete
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >> lambda: ihook(item=item, **kwds), when=when, reraise=reraise > ) >/usr/lib/python3.12/site-packages/_pytest/runner.py:262: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <_HookCaller 'pytest_runtest_call'>, args = () >kwargs = {'item': <Flake8Item flake-8>}, argname = 'item', firstresult = False > def __call__(self, *args, **kwargs): > if args: > raise TypeError("hook calling supports only keyword arguments") > assert not self.is_historic() > > # This is written to avoid expensive operations when not needed. > if self.spec: > for argname in self.spec.argnames: > if argname not in kwargs: > notincall = tuple(set(self.spec.argnames) - kwargs.keys()) > warnings.warn( > "Argument(s) {} which are declared in the hookspec " > "can not be found in this hook call".format(notincall), > stacklevel=2, > ) > break > > firstresult = self.spec.opts.get("firstresult") > else: > firstresult = False > >> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) >/usr/lib/python3.12/site-packages/pluggy/_hooks.py:265: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <_pytest.config.PytestPluginManager object at 0x3ffbb8d6b10> >hook_name = 'pytest_runtest_call' >methods = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.12/site-packages/_pytest/runne...ption', plugin=<module '_pytest.threadexception' from '/usr/lib/python3.12/site-packages/_pytest/threadexception.py'>>] >kwargs = {'item': <Flake8Item flake-8>}, firstresult = False > def _hookexec(self, hook_name, methods, kwargs, firstresult): > # called from all hookcaller instances. > # enable_tracing will set its own wrapping function at self._inner_hookexec >> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) >/usr/lib/python3.12/site-packages/pluggy/_manager.py:80: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >hook_name = 'pytest_runtest_call' >hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.12/site-packages/_pytest/runne...ption', plugin=<module '_pytest.threadexception' from '/usr/lib/python3.12/site-packages/_pytest/threadexception.py'>>] >kwargs = {'item': <Flake8Item flake-8>}, firstresult = False > def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): > before(hook_name, hook_impls, kwargs) > outcome = _Result.from_call( > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) > ) > after(outcome, hook_name, hook_impls, kwargs) >> return outcome.get_result() >/usr/lib/python3.12/site-packages/pluggy/_manager.py:327: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pluggy._result._Result object at 0x3ffbb587cb0> > def get_result(self): > """Get the result(s) for this hook call. > > If the hook was marked as a ``firstresult`` only a single value > will be returned otherwise a list of results. > """ > __tracebackhide__ = True > if self._excinfo is None: > return self._result > else: > ex = self._excinfo >> raise ex[1].with_traceback(ex[2]) >/usr/lib/python3.12/site-packages/pluggy/_result.py:60: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >cls = <class 'pluggy._result._Result'> >func = <function PluginManager.add_hookcall_monitoring.<locals>.traced_hookexec.<locals>.<lambda> at 0x3ffbb640720> > @classmethod > def from_call(cls, func): > __tracebackhide__ = True > result = excinfo = None > try: >> result = func() >/usr/lib/python3.12/site-packages/pluggy/_result.py:33: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >> lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) > ) >/usr/lib/python3.12/site-packages/pluggy/_manager.py:324: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >hook_name = 'pytest_runtest_call' >hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.12/site-packages/_pytest/runne...ption', plugin=<module '_pytest.threadexception' from '/usr/lib/python3.12/site-packages/_pytest/threadexception.py'>>] >caller_kwargs = {'item': <Flake8Item flake-8>}, firstresult = False > def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): > """Execute a call into multiple python functions/methods and return the > result(s). > > ``caller_kwargs`` comes from _HookCaller.__call__(). > """ > __tracebackhide__ = True > results = [] > excinfo = None > try: # run impl and wrapper setup functions in a loop > teardowns = [] > try: > for hook_impl in reversed(hook_impls): > try: > args = [caller_kwargs[argname] for argname in hook_impl.argnames] > except KeyError: > for argname in hook_impl.argnames: > if argname not in caller_kwargs: > raise HookCallError( > f"hook call must provide argument {argname!r}" > ) > > if hook_impl.hookwrapper: > try: > gen = hook_impl.function(*args) > next(gen) # first yield > teardowns.append(gen) > except StopIteration: > _raise_wrapfail(gen, "did not yield") > else: > res = hook_impl.function(*args) > if res is not None: > results.append(res) > if firstresult: # halt further impl calls > break > except BaseException: > excinfo = sys.exc_info() > finally: > if firstresult: # first result hooks return a single value > outcome = _Result(results[0] if results else None, excinfo) > else: > outcome = _Result(results, excinfo) > > # run all wrapper post-yield blocks > for gen in reversed(teardowns): > try: > gen.send(outcome) > _raise_wrapfail(gen, "has second yield") > except StopIteration: > pass > >> return outcome.get_result() >/usr/lib/python3.12/site-packages/pluggy/_callers.py:60: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pluggy._result._Result object at 0x3ffbb95a090> > def get_result(self): > """Get the result(s) for this hook call. > > If the hook was marked as a ``firstresult`` only a single value > will be returned otherwise a list of results. > """ > __tracebackhide__ = True > if self._excinfo is None: > return self._result > else: > ex = self._excinfo >> raise ex[1].with_traceback(ex[2]) >/usr/lib/python3.12/site-packages/pluggy/_result.py:60: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >hook_name = 'pytest_runtest_call' >hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.12/site-packages/_pytest/runne...ption', plugin=<module '_pytest.threadexception' from '/usr/lib/python3.12/site-packages/_pytest/threadexception.py'>>] >caller_kwargs = {'item': <Flake8Item flake-8>}, firstresult = False > def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): > """Execute a call into multiple python functions/methods and return the > result(s). > > ``caller_kwargs`` comes from _HookCaller.__call__(). > """ > __tracebackhide__ = True > results = [] > excinfo = None > try: # run impl and wrapper setup functions in a loop > teardowns = [] > try: > for hook_impl in reversed(hook_impls): > try: > args = [caller_kwargs[argname] for argname in hook_impl.argnames] > except KeyError: > for argname in hook_impl.argnames: > if argname not in caller_kwargs: > raise HookCallError( > f"hook call must provide argument {argname!r}" > ) > > if hook_impl.hookwrapper: > try: > gen = hook_impl.function(*args) > next(gen) # first yield > teardowns.append(gen) > except StopIteration: > _raise_wrapfail(gen, "did not yield") > else: >> res = hook_impl.function(*args) >/usr/lib/python3.12/site-packages/pluggy/_callers.py:39: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >item = <Flake8Item flake-8> > def pytest_runtest_call(item: Item) -> None: > _update_current_test_var(item, "call") > try: > del sys.last_type > del sys.last_value > del sys.last_traceback > except AttributeError: > pass > try: > item.runtest() > except Exception as e: > # Store trace info to allow postmortem debugging > sys.last_type = type(e) > sys.last_value = e > assert e.__traceback__ is not None > # Skip *this* frame > sys.last_traceback = e.__traceback__.tb_next >> raise e >/usr/lib/python3.12/site-packages/_pytest/runner.py:177: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >item = <Flake8Item flake-8> > def pytest_runtest_call(item: Item) -> None: > _update_current_test_var(item, "call") > try: > del sys.last_type > del sys.last_value > del sys.last_traceback > except AttributeError: > pass > try: >> item.runtest() >/usr/lib/python3.12/site-packages/_pytest/runner.py:169: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <Flake8Item flake-8> > def runtest(self): > with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ > BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ > redirect_stdout(to), redirect_stderr(te): >> found_errors = check_file( > self.fspath, > self.flake8ignore, > self.maxlength, > self.maxdoclength, > self.maxcomplexity, > self.showsource, > self.statistics > ) >/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-6.fc39.noarch/usr/lib/python3.12/site-packages/pytest_flake8.py:136: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >path = local('/tmp/pytest-of-mockbuild/pytest-0/test_run_on_init_file0/tests/__init__.py') >flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' >showsource = [], statistics = [] > def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, > showsource, statistics): > """Run flake8 over a single file, and return the number of failures.""" > args = [] > if maxlength: > args += ['--max-line-length', maxlength] > if maxdoclenght: > args += ['--max-doc-length', maxdoclenght] > if maxcomplexity: > args += ['--max-complexity', maxcomplexity] > if showsource: > args += ['--show-source'] > if statistics: > args += ['--statistics'] > args += [str(path)] > app = application.Application() >> prelim_opts, remaining_args = app.parse_preliminary_options(args) >E AttributeError: 'Application' object has no attribute 'parse_preliminary_options' >/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-6.fc39.noarch/usr/lib/python3.12/site-packages/pytest_flake8.py:217: AttributeError >=============================== warnings summary =============================== >../../../../usr/lib/python3.12/site-packages/_pytest/config/__init__.py:1191 > /usr/lib/python3.12/site-packages/_pytest/config/__init__.py:1191: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 > self._mark_plugins_for_rewrite(hook) >-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html >=========================== short test summary info ============================ >FAILED tests/__init__.py::flake-8::FLAKE8 - AttributeError: 'Application' obj... >========================= 1 failed, 1 warning in 0.15s ========================= >_____________________________ test_junit_classname _____________________________ >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_junit_classname0')> > def test_junit_classname(testdir): > testdir.makepyfile("") > result = testdir.runpytest("--flake8", "--junit-xml=TEST.xml") > junit = testdir.tmpdir.join("TEST.xml") > with open(str(junit)) as j_file: > j_text = j_file.read() >> result.assert_outcomes(passed=1) >E AssertionError: assert {'errors': 0,...pped': 0, ...} == {'errors': 0,...pped': 0, ...} >E Omitting 4 identical items, use -vv to show >E Differing items: >E {'passed': 0} != {'passed': 1} >E {'failed': 1} != {'failed': 0} >E Use -v to get more diff >/builddir/build/BUILD/pytest-flake8-1.1.1/test_flake8.py:192: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux -- Python 3.12.0b4, pytest-7.3.2, pluggy-1.0.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_junit_classname0 >plugins: flake8-1.1.1 >collected 1 item >test_junit_classname.py F [100%] >=================================== FAILURES =================================== >_________________________________ FLAKE8-check _________________________________ >cls = <class '_pytest.runner.CallInfo'> >func = <function call_runtest_hook.<locals>.<lambda> at 0x3ffbb6439c0> >when = 'call' >reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>) > @classmethod > def from_call( > cls, > func: "Callable[[], TResult]", > when: "Literal['collect', 'setup', 'call', 'teardown']", > reraise: Optional[ > Union[Type[BaseException], Tuple[Type[BaseException], ...]] > ] = None, > ) -> "CallInfo[TResult]": > """Call func, wrapping the result in a CallInfo. > > :param func: > The function to call. Called without arguments. > :param when: > The phase in which the function is called. > :param reraise: > Exception or exceptions that shall propagate if raised by the > function, instead of being wrapped in the CallInfo. > """ > excinfo = None > start = timing.time() > precise_start = timing.perf_counter() > try: >> result: Optional[TResult] = func() >/usr/lib/python3.12/site-packages/_pytest/runner.py:341: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >> lambda: ihook(item=item, **kwds), when=when, reraise=reraise > ) >/usr/lib/python3.12/site-packages/_pytest/runner.py:262: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <_HookCaller 'pytest_runtest_call'>, args = () >kwargs = {'item': <Flake8Item flake-8>}, argname = 'item', firstresult = False > def __call__(self, *args, **kwargs): > if args: > raise TypeError("hook calling supports only keyword arguments") > assert not self.is_historic() > > # This is written to avoid expensive operations when not needed. > if self.spec: > for argname in self.spec.argnames: > if argname not in kwargs: > notincall = tuple(set(self.spec.argnames) - kwargs.keys()) > warnings.warn( > "Argument(s) {} which are declared in the hookspec " > "can not be found in this hook call".format(notincall), > stacklevel=2, > ) > break > > firstresult = self.spec.opts.get("firstresult") > else: > firstresult = False > >> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) >/usr/lib/python3.12/site-packages/pluggy/_hooks.py:265: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <_pytest.config.PytestPluginManager object at 0x3ffbb58b320> >hook_name = 'pytest_runtest_call' >methods = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.12/site-packages/_pytest/runne...ption', plugin=<module '_pytest.threadexception' from '/usr/lib/python3.12/site-packages/_pytest/threadexception.py'>>] >kwargs = {'item': <Flake8Item flake-8>}, firstresult = False > def _hookexec(self, hook_name, methods, kwargs, firstresult): > # called from all hookcaller instances. > # enable_tracing will set its own wrapping function at self._inner_hookexec >> return self._inner_hookexec(hook_name, methods, kwargs, firstresult) >/usr/lib/python3.12/site-packages/pluggy/_manager.py:80: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >hook_name = 'pytest_runtest_call' >hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.12/site-packages/_pytest/runne...ption', plugin=<module '_pytest.threadexception' from '/usr/lib/python3.12/site-packages/_pytest/threadexception.py'>>] >kwargs = {'item': <Flake8Item flake-8>}, firstresult = False > def traced_hookexec(hook_name, hook_impls, kwargs, firstresult): > before(hook_name, hook_impls, kwargs) > outcome = _Result.from_call( > lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) > ) > after(outcome, hook_name, hook_impls, kwargs) >> return outcome.get_result() >/usr/lib/python3.12/site-packages/pluggy/_manager.py:327: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pluggy._result._Result object at 0x3ffbb4eadb0> > def get_result(self): > """Get the result(s) for this hook call. > > If the hook was marked as a ``firstresult`` only a single value > will be returned otherwise a list of results. > """ > __tracebackhide__ = True > if self._excinfo is None: > return self._result > else: > ex = self._excinfo >> raise ex[1].with_traceback(ex[2]) >/usr/lib/python3.12/site-packages/pluggy/_result.py:60: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >cls = <class 'pluggy._result._Result'> >func = <function PluginManager.add_hookcall_monitoring.<locals>.traced_hookexec.<locals>.<lambda> at 0x3ffbb643b00> > @classmethod > def from_call(cls, func): > __tracebackhide__ = True > result = excinfo = None > try: >> result = func() >/usr/lib/python3.12/site-packages/pluggy/_result.py:33: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >> lambda: oldcall(hook_name, hook_impls, kwargs, firstresult) > ) >/usr/lib/python3.12/site-packages/pluggy/_manager.py:324: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >hook_name = 'pytest_runtest_call' >hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.12/site-packages/_pytest/runne...ption', plugin=<module '_pytest.threadexception' from '/usr/lib/python3.12/site-packages/_pytest/threadexception.py'>>] >caller_kwargs = {'item': <Flake8Item flake-8>}, firstresult = False > def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): > """Execute a call into multiple python functions/methods and return the > result(s). > > ``caller_kwargs`` comes from _HookCaller.__call__(). > """ > __tracebackhide__ = True > results = [] > excinfo = None > try: # run impl and wrapper setup functions in a loop > teardowns = [] > try: > for hook_impl in reversed(hook_impls): > try: > args = [caller_kwargs[argname] for argname in hook_impl.argnames] > except KeyError: > for argname in hook_impl.argnames: > if argname not in caller_kwargs: > raise HookCallError( > f"hook call must provide argument {argname!r}" > ) > > if hook_impl.hookwrapper: > try: > gen = hook_impl.function(*args) > next(gen) # first yield > teardowns.append(gen) > except StopIteration: > _raise_wrapfail(gen, "did not yield") > else: > res = hook_impl.function(*args) > if res is not None: > results.append(res) > if firstresult: # halt further impl calls > break > except BaseException: > excinfo = sys.exc_info() > finally: > if firstresult: # first result hooks return a single value > outcome = _Result(results[0] if results else None, excinfo) > else: > outcome = _Result(results, excinfo) > > # run all wrapper post-yield blocks > for gen in reversed(teardowns): > try: > gen.send(outcome) > _raise_wrapfail(gen, "has second yield") > except StopIteration: > pass > >> return outcome.get_result() >/usr/lib/python3.12/site-packages/pluggy/_callers.py:60: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <pluggy._result._Result object at 0x3ffbb4c7cb0> > def get_result(self): > """Get the result(s) for this hook call. > > If the hook was marked as a ``firstresult`` only a single value > will be returned otherwise a list of results. > """ > __tracebackhide__ = True > if self._excinfo is None: > return self._result > else: > ex = self._excinfo >> raise ex[1].with_traceback(ex[2]) >/usr/lib/python3.12/site-packages/pluggy/_result.py:60: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >hook_name = 'pytest_runtest_call' >hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.12/site-packages/_pytest/runne...ption', plugin=<module '_pytest.threadexception' from '/usr/lib/python3.12/site-packages/_pytest/threadexception.py'>>] >caller_kwargs = {'item': <Flake8Item flake-8>}, firstresult = False > def _multicall(hook_name, hook_impls, caller_kwargs, firstresult): > """Execute a call into multiple python functions/methods and return the > result(s). > > ``caller_kwargs`` comes from _HookCaller.__call__(). > """ > __tracebackhide__ = True > results = [] > excinfo = None > try: # run impl and wrapper setup functions in a loop > teardowns = [] > try: > for hook_impl in reversed(hook_impls): > try: > args = [caller_kwargs[argname] for argname in hook_impl.argnames] > except KeyError: > for argname in hook_impl.argnames: > if argname not in caller_kwargs: > raise HookCallError( > f"hook call must provide argument {argname!r}" > ) > > if hook_impl.hookwrapper: > try: > gen = hook_impl.function(*args) > next(gen) # first yield > teardowns.append(gen) > except StopIteration: > _raise_wrapfail(gen, "did not yield") > else: >> res = hook_impl.function(*args) >/usr/lib/python3.12/site-packages/pluggy/_callers.py:39: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >item = <Flake8Item flake-8> > def pytest_runtest_call(item: Item) -> None: > _update_current_test_var(item, "call") > try: > del sys.last_type > del sys.last_value > del sys.last_traceback > except AttributeError: > pass > try: > item.runtest() > except Exception as e: > # Store trace info to allow postmortem debugging > sys.last_type = type(e) > sys.last_value = e > assert e.__traceback__ is not None > # Skip *this* frame > sys.last_traceback = e.__traceback__.tb_next >> raise e >/usr/lib/python3.12/site-packages/_pytest/runner.py:177: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >item = <Flake8Item flake-8> > def pytest_runtest_call(item: Item) -> None: > _update_current_test_var(item, "call") > try: > del sys.last_type > del sys.last_value > del sys.last_traceback > except AttributeError: > pass > try: >> item.runtest() >/usr/lib/python3.12/site-packages/_pytest/runner.py:169: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <Flake8Item flake-8> > def runtest(self): > with BytesIO() as bo, TextIOWrapper(bo, encoding='utf-8') as to, \ > BytesIO() as be, TextIOWrapper(be, encoding='utf-8') as te, \ > redirect_stdout(to), redirect_stderr(te): >> found_errors = check_file( > self.fspath, > self.flake8ignore, > self.maxlength, > self.maxdoclength, > self.maxcomplexity, > self.showsource, > self.statistics > ) >/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-6.fc39.noarch/usr/lib/python3.12/site-packages/pytest_flake8.py:136: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >path = local('/tmp/pytest-of-mockbuild/pytest-0/test_junit_classname0/test_junit_classname.py') >flake8ignore = [], maxlength = '', maxdoclenght = '', maxcomplexity = '' >showsource = [], statistics = [] > def check_file(path, flake8ignore, maxlength, maxdoclenght, maxcomplexity, > showsource, statistics): > """Run flake8 over a single file, and return the number of failures.""" > args = [] > if maxlength: > args += ['--max-line-length', maxlength] > if maxdoclenght: > args += ['--max-doc-length', maxdoclenght] > if maxcomplexity: > args += ['--max-complexity', maxcomplexity] > if showsource: > args += ['--show-source'] > if statistics: > args += ['--statistics'] > args += [str(path)] > app = application.Application() >> prelim_opts, remaining_args = app.parse_preliminary_options(args) >E AttributeError: 'Application' object has no attribute 'parse_preliminary_options' >/builddir/build/BUILDROOT/python-pytest-flake8-1.1.1-6.fc39.noarch/usr/lib/python3.12/site-packages/pytest_flake8.py:217: AttributeError >=============================== warnings summary =============================== >../../../../usr/lib/python3.12/site-packages/_pytest/config/__init__.py:1191 > /usr/lib/python3.12/site-packages/_pytest/config/__init__.py:1191: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: pytest_flake8 > self._mark_plugins_for_rewrite(hook) >-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html >- generated xml file: /tmp/pytest-of-mockbuild/pytest-0/test_junit_classname0/TEST.xml - >=========================== short test summary info ============================ >FAILED test_junit_classname.py::flake-8::FLAKE8 - AttributeError: 'Applicatio... >========================= 1 failed, 1 warning in 0.12s ========================= >=========================== short test summary info ============================ >FAILED pytest_flake8.py::flake-8::FLAKE8 - AttributeError: 'Application' obje... >FAILED setup.py::flake-8::FLAKE8 - AttributeError: 'Application' object has n... >FAILED test_flake8.py::flake-8::FLAKE8 - AttributeError: 'Application' object... >FAILED test_flake8.py::TestIgnores::test_default_flake8_ignores - AssertionEr... >FAILED test_flake8.py::TestIgnores::test_ignores_all - AssertionError: assert... >FAILED test_flake8.py::TestIgnores::test_w293w292 - Failed: nomatch: '*W293*' >FAILED test_flake8.py::TestIgnores::test_mtime_caching - Failed: nomatch: '*W... >FAILED test_flake8.py::test_ok_verbose - AssertionError: assert {'errors': 0,... >FAILED test_flake8.py::test_keyword_match - Failed: nomatch: '*E201*' >FAILED test_flake8.py::test_run_on_init_file - AssertionError: assert {'error... >FAILED test_flake8.py::test_junit_classname - AssertionError: assert {'errors... >=================== 11 failed, 4 passed, 1 xfailed in 2.09s ==================== >RPM build errors: >error: Bad exit status from /var/tmp/rpm-tmp.Mfpl7C (%check) > Bad exit status from /var/tmp/rpm-tmp.Mfpl7C (%check) >Child return code was: 1 >EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M a31fabef24c1477d829b1bdaaf49a50a -D /var/lib/mock/f39-build-44340961-5276606/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.aku0ow4v:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007" --setenv=PS1=<mock-chroot> \\s-\\v\\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec\n', 1)] >Traceback (most recent call last): > File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace > result = func(*args, **kw) > ^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status > raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) >mockbuild.exception.Error: Command failed: > # /usr/bin/systemd-nspawn -q -M a31fabef24c1477d829b1bdaaf49a50a -D /var/lib/mock/f39-build-44340961-5276606/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.aku0ow4v:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-flake8.spec >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2226304
: 1979296 |
1979297
|
1979298