]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/__init__.py
6 here
= os
.path
.dirname(__file__
)
7 loader
= unittest
.defaultTestLoader
10 suite
= unittest
.TestSuite()
11 for fn
in os
.listdir(here
):
12 if fn
.startswith("test") and fn
.endswith(".py"):
13 modname
= "unittest.test." + fn
[:-3]
15 module
= sys
.modules
[modname
]
16 suite
.addTest(loader
.loadTestsFromModule(module
))
20 if __name__
== "__main__":
21 unittest
.main(defaultTest
="suite")