diff options
Diffstat (limited to 'tests/test_build_ext.py')
-rw-r--r-- | tests/test_build_ext.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py index a335c1b..ff195d5 100644 --- a/tests/test_build_ext.py +++ b/tests/test_build_ext.py @@ -1,14 +1,11 @@ -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_ext - test_yaml_ext.main('test_yaml_ext') - -if __name__ == '__main__': - main() + import test_yaml_ext, test_appliance + test_appliance.run(test_yaml_ext) |