A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-March/147658.html below:

[Python-Dev] 3.5 unittest does not support namespace packages for discovering

[Python-Dev] 3.5 unittest does not support namespace packages for discoveringINADA Naoki songofacandy at gmail.com
Thu Mar 23 11:59:23 EDT 2017
And this issue is relating to it too: http://bugs.python.org/issue29716

In short, "namespace package" is for make it possible to `pip install
foo_bar foo_baz`,
when foo_bar provides `foo.bar` and foo_baz provides `foo.baz`
package.  (foo is namespace package).

If unittests searches normal directly, it may walk deep into very
large tree containing
millions of directories.  I don't like it.


On Fri, Mar 24, 2017 at 12:53 AM, INADA Naoki <songofacandy at gmail.com> wrote:
> There is already http://bugs.python.org/issue29642
>
> On Thu, Mar 23, 2017 at 11:04 PM, Ilya Kazakevich
> <ilya.kazakevich at jetbrains.com> wrote:
>> Hello.
>> I have following layout:
>>
>> \---tests
>>     |   test_module.py
>>     |   __init__.py
>>
>>
>> When I launch "python.exe" -m unittest discover -t . -s tests" it works
>> perfectly.
>> But when I remove " __init__.py" it says
>>
>>  Start directory is not importable: "tests'"
>>
>> ``loader.py``:
>> if start_dir != top_level_dir:
>>     is_not_importable = not os.path.isfile(os.path.join(start_dir,
>> '__init__.py'))
>>
>>
>> I believe ``__init__.py`` does not play any role since Python 3.3, am I
>> right?
>> If so, it seems to be a bug. Should I create an issue?
>>
>> Ilya.
>>
>> _______________________________________________
>> Python-Dev mailing list
>> Python-Dev at python.org
>> https://mail.python.org/mailman/listinfo/python-dev
>> Unsubscribe:
>> https://mail.python.org/mailman/options/python-dev/songofacandy%40gmail.com
>>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4