[pytest-dev] [proposal] deprecating the pytest_namespace hook
Ronny Pfannschmidt
opensource at ronnypfannschmidt.de
Fri Aug 26 08:54:52 EDT 2016
Hi Bruno,
the problem it creates is, that we need to load plugins before even
parsing the config and before even having config object just in order to
literally monkeypatch a module
the second problem it creates is, it makes the pytest namespace
impossible to introspect for external tools
also - import works just fine - there is no need for a dynamic
namespace, people can import from concrete/correct locations
-- Ronny
On 26.08.2016 13:45, Bruno Oliveira wrote:
> Hi Ronny,
>
> I'm not sure I understand what you mean by "ugly and without full
> knowledge of what should happen"... could you give more details?
>
> Also, what would we provide instead? This is a largely used feature,
> I'm sure we can't just remove it.
>
> Cheers
>
> On Fri, Aug 26, 2016 at 4:41 AM Ronny Pfannschmidt
> <opensource at ronnypfannschmidt.de
> <mailto:opensource at ronnypfannschmidt.de>> wrote:
>
>
>
> hi all
>
> currently the need to initialize the namespace makes it necessary
> to do
> the initialization of the plugin-manager in a relatively ugly fashion
> and without full knowledge of what should happen to the process
>
> i would like to remove that need, so we only ever initialize a
> pluginmanager from a call to pytest.main
>
>
> -- Ronny
>
> _______________________________________________
> pytest-dev mailing list
> pytest-dev at python.org <mailto:pytest-dev at python.org>
> https://mail.python.org/mailman/listinfo/pytest-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20160826/5c714154/attachment.html>
More information about the pytest-dev
mailing list