Browse Source

Add __init__.py file

pull/142/head
Oliverpool 9 years ago
parent
commit
58c2f3649c
  1. 0
      patacrep/songbook/__init__.py
  2. 10
      test/test_compilation/test_compilation.py

0
patacrep/songbook/__init__.py

10
test/test_compilation/test_compilation.py

@ -125,20 +125,18 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
emptymod = subprocess.check_output(
[sys.executable, "-m", 'patacrep.songbook', 'cwd.sb'],
stderr=subprocess.STDOUT,
cwd=os.path.dirname(songbook),
env=current_env
cwd=os.path.dirname(songbook)
)
print(emptymod)
except subprocess.CalledProcessError as error:
print(error.output)
print("### import cwd")
print("### dir module")
try:
importcwd = subprocess.check_output(
[sys.executable, "-c", 'import sys;print(sys.executable)'],
[sys.executable, "-c", 'import patacrep.songbook;import pkgutil;mo=[name for _, name, _ in pkgutil.iter_modules(patacrep.__path__)];print(mo)'],
stderr=subprocess.STDOUT,
cwd=os.path.dirname(songbook),
env=current_env
cwd=os.path.dirname(songbook)
)
print(importcwd)
except subprocess.CalledProcessError as error:

Loading…
Cancel
Save