Previous topic

music21.test.testInstallation

Next topic

music21.test.timeGraphImportStar

Table Of Contents

Table Of Contents

This Page

music21.test.testSingleCoreAll

Controller to run all module tests in the music21 folders.

Runs great, but slowly on multiprocessor systems.

Functions

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

Run all tests. Group can be test and external

>>> print(None)
None

ModuleGather

class music21.test.testSingleCoreAll.ModuleGather

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

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

ModuleGather methods

ModuleGather.getModule(fp, restoreEnvironmentDefaults=False)

gets one module object from the file path

ModuleGather.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.