Source

pyyaml / tests / test_build.py

Diff from to

File tests/test_build.py

 
-def main():
+if __name__ == '__main__':
     import sys, os, distutils.util
     build_lib = 'build/lib'
     build_lib_ext = os.path.join('build', 'lib.%s-%s' % (distutils.util.get_platform(), sys.version[0:3]))
     sys.path.insert(0, build_lib)
     sys.path.insert(0, build_lib_ext)
-    import test_yaml
-    test_yaml.main('test_yaml')
+    import test_yaml, test_appliance
+    test_appliance.run(test_yaml)
 
-if __name__ == '__main__':
-    main()
-