general: add an adhoc test for checking mixin behaviour with namespace packages and __init__.py hack
also use that hack in my.fbmessenger
This commit is contained in:
parent
179b657eea
commit
8336d18434
4 changed files with 30 additions and 2 deletions
7
misc/overlay_for_init_py_test/my/fbmessenger/all.py
Normal file
7
misc/overlay_for_init_py_test/my/fbmessenger/all.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from my.fbmessenger import export
|
||||
from . import mixin
|
||||
|
||||
|
||||
def messages():
|
||||
yield from mixin.messages()
|
||||
yield from export.messages()
|
2
misc/overlay_for_init_py_test/my/fbmessenger/mixin.py
Normal file
2
misc/overlay_for_init_py_test/my/fbmessenger/mixin.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
def messages():
|
||||
yield from ['1', '2', '3']
|
Loading…
Add table
Add a link
Reference in a new issue