diff --git a/test/test_compile_lib.py b/test/test_compile_lib.py index 42b55904..db1da6ba 100644 --- a/test/test_compile_lib.py +++ b/test/test_compile_lib.py @@ -24,5 +24,9 @@ def check_compile_lib(scheme_name, implementation_name): if __name__ == '__main__': - import nose - nose.runmodule() + try: + import nose2 + nose2.main() + except ImportError: + import nose + nose.runmodule() diff --git a/test/test_functest.py b/test/test_functest.py index 0b255075..85933824 100644 --- a/test/test_functest.py +++ b/test/test_functest.py @@ -24,5 +24,9 @@ def check_functest(scheme_name, implementation_name): if __name__ == '__main__': - import nose - nose.runmodule() + try: + import nose2 + nose2.main() + except ImportError: + import nose + nose.runmodule() diff --git a/test/test_license.py b/test/test_license.py index e06e703e..adabf499 100644 --- a/test/test_license.py +++ b/test/test_license.py @@ -18,5 +18,9 @@ def check_license(scheme_name, implementation_name): if __name__ == '__main__': - import nose - nose.runmodule() + try: + import nose2 + nose2.main() + except ImportError: + import nose + nose.runmodule() diff --git a/test/test_metadata.py b/test/test_metadata.py index 44a9257f..1cd3820f 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -119,5 +119,9 @@ def check_element(field, element, props): if __name__ == '__main__': - import nose - nose.runmodule() + try: + import nose2 + nose2.main() + except ImportError: + import nose + nose.runmodule() diff --git a/test/test_symbol_namespace.py b/test/test_symbol_namespace.py index 6ae9485a..fa77d2df 100644 --- a/test/test_symbol_namespace.py +++ b/test/test_symbol_namespace.py @@ -47,5 +47,9 @@ def check_symbol_namespace(scheme_name, implementation_name): if __name__ == '__main__': - import nose - nose.runmodule() + try: + import nose2 + nose2.main() + except ImportError: + import nose + nose.runmodule()