Skip to content

TypeError: '>' not supported between instances of 'NoneType' and 'float' #4329

@blueyed

Description

@blueyed
% pytest 'testing/test_collection.py::TestCollector::()::test_getcustomfile_roundtrip' -s --tb=short
_________________________________________________________________ TestCollector.test_getcustomfile_roundtrip _________________________________________________________________
…/Vcs/pytest/testing/test_collection.py:98: in test_getcustomfile_roundtrip
    node = testdir.getpathnode(hello)
…/Vcs/pytest/src/_pytest/pytester.py:737: in getpathnode
    res = session.perform_collect([x], genitems=False)[0]
…/Vcs/pytest/src/_pytest/main.py:430: in perform_collect
    items = self._perform_collect(args, genitems)
…/Vcs/pytest/src/_pytest/main.py:455: in _perform_collect
    self.ihook.pytest_collectreport(report=rep)
…/Vcs/pluggy/pluggy/hooks.py:284: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
…/Vcs/pluggy/pluggy/manager.py:67: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
…/Vcs/pluggy/pluggy/manager.py:61: in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
…/Vcs/pytest/src/_pytest/terminal.py:491: in pytest_collectreport
    self.report_collect()
…/Vcs/pytest/src/_pytest/terminal.py:500: in report_collect
    if self._collect_report_last_write > t - 0.5:
E   TypeError: '>' not supported between instances of 'NoneType' and 'float'

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions