Closed
Description
Hello o/
I've ran into some issues while running tests for RKrahl/pytest-dependency#44. Since their test suite always enables all plugins and there isn't an easy way to disable one for the tests, I've had to temporarily uninstall the plugin to finish testing. I figured I'd let you know that there are some unhandled edge cases somewhere in your plugin.
Using order-1.0.0
, platform win32 -- Python 3.8.8, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
Tracebacks:
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "C:\Python38\lib\site-packages\_pytest\main.py", line 269, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "C:\Python38\lib\site-packages\_pytest\main.py", line 322, in _main
INTERNALERROR> config.hook.pytest_collection(session=session)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 337, in traced_hookexec
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 52, in from_call
INTERNALERROR> result = func()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 335, in <lambda>
INTERNALERROR> outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "C:\Python38\lib\site-packages\_pytest\main.py", line 333, in pytest_collection
INTERNALERROR> session.perform_collect()
INTERNALERROR> File "C:\Python38\lib\site-packages\_pytest\main.py", line 637, in perform_collect
INTERNALERROR> hook.pytest_collection_modifyitems(
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 337, in traced_hookexec
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 52, in from_call
INTERNALERROR> result = func()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 335, in <lambda>
INTERNALERROR> outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "C:\Python38\lib\site-packages\pytest_order\plugin.py", line 119, in modify_items
INTERNALERROR> sorter = Sorter(config, items)
INTERNALERROR> File "C:\Python38\lib\site-packages\pytest_order\sorter.py", line 56, in __init__
INTERNALERROR> self.settings: Settings = Settings(config)
INTERNALERROR> File "C:\Python38\lib\site-packages\pytest_order\settings.py", line 63, in __init__
INTERNALERROR> and auto_mark_dep.lower() in ("1", "yes", "y", "true", "t", "on")
INTERNALERROR> AttributeError: 'bool' object has no attribute 'lower'
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "C:\Python38\lib\site-packages\_pytest\main.py", line 269, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "C:\Python38\lib\site-packages\_pytest\main.py", line 322, in _main
INTERNALERROR> config.hook.pytest_collection(session=session)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 337, in traced_hookexec
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 52, in from_call
INTERNALERROR> result = func()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 335, in <lambda>
INTERNALERROR> outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "C:\Python38\lib\site-packages\_pytest\main.py", line 333, in pytest_collection
INTERNALERROR> session.perform_collect()
INTERNALERROR> File "C:\Python38\lib\site-packages\_pytest\main.py", line 637, in perform_collect
INTERNALERROR> hook.pytest_collection_modifyitems(
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 337, in traced_hookexec
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 52, in from_call
INTERNALERROR> result = func()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 335, in <lambda>
INTERNALERROR> outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\manager.py", line 84, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "C:\Python38\lib\site-packages\pluggy\callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "C:\Python38\lib\site-packages\pytest_order\plugin.py", line 120, in modify_items
INTERNALERROR> items[:] = sorter.sort_items()
INTERNALERROR> File "C:\Python38\lib\site-packages\pytest_order\sorter.py", line 77, in sort_items
INTERNALERROR> self.collect_markers()
INTERNALERROR> File "C:\Python38\lib\site-packages\pytest_order\sorter.py", line 295, in collect_markers
INTERNALERROR> self.mark_binning(item, dep_marks, aliases)
INTERNALERROR> File "C:\Python38\lib\site-packages\pytest_order\sorter.py", line 131, in mark_binning
INTERNALERROR> self.handle_order_mark(item)
INTERNALERROR> File "C:\Python38\lib\site-packages\pytest_order\sorter.py", line 165, in handle_order_mark
INTERNALERROR> order = mark.args[0] if mark.args else mark.kwargs.get("index")
INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'args'
You can get more by just running tests from the pytest-dependency
project while having pytest-order
installed.
Metadata
Metadata
Assignees
Labels
No labels