In a message of Fri, 21 Aug 2015 06:26:11 -0700, Alex Kleider writes:
>On 2015-08-20 23:16, Peter Otten wrote:
>
>
>> Yea, breaking things is an art form ;)
>
>
>> $ python3 -m unittest -h
>> usage: python3 -m unittest [-h] [-v] [-q] [-f] [-c] [-b] [tests [tests 
>> ...]]
>> 
>.....
>> 
>> For test discovery all test modules must be importable from the top 
>> level
>> directory of the project.
>
>How is "top level directory of the project" defined in this context?
>Is it as far up as one can travel while passing through directories
>containing an __init__.py file?

With python3 you don't need an __init__.py file to have a module,
see: https://www.python.org/dev/peps/pep-0420/

... scratching head ....

So I suppose you could make a test module that is importable
from the top level directory, but doesn't have an __init__.py file.

... is that true? ... more scratching ...

Laura

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to