Previous topic

music21.tempo

Next topic

music21.test.multiprocessTest

Table Of Contents

Table Of Contents

music21.test.test

Controller to run all module tests in the music21 folders.

Runs great, but slowly on multiprocessor systems.

music21.test.test.main(testGroup=['test'], restoreEnvironmentDefaults=False)

Run all tests. Group can be test and external

>>> print(None)
None

ModuleGather

class music21.test.test.ModuleGather

Utility class for gathering and importing all modules in the music21 package. Puts them in self.modulePaths.

>>> from music21.test import test as testModule
>>> mg = testModule.ModuleGather()
>>> print mg.modulePaths[0]
D:\Web\eclipse\music21base\music21\xmlnode.py

ModuleGather attributes

Attributes without Documentation: pathSkip, moduleSkip, dirParent, modulePaths

ModuleGather methods

getModule(fp, restoreEnvironmentDefaults=False)

gets one module object from the file path

load(restoreEnvironmentDefaults=False)

Return a list of module objects that are not in the skip list.

N.B. the list is a list of actual module objects not names, therefore cannot be pickled.