diff --git a/test/base/populators.py b/test/base/populators.py index f93aa2e630f..733270aae7f 100644 --- a/test/base/populators.py +++ b/test/base/populators.py @@ -2,6 +2,7 @@ import contextlib import json import os import time +import unittest from functools import wraps from operator import itemgetter @@ -33,10 +34,11 @@ def flakey(method): def wrapped_method(test_case, *args, **kwargs): try: method(test_case, *args, **kwargs) + except unittest.SkipTest: + raise except Exception: if SKIP_FLAKEY_TESTS_ON_ERROR: - from nose.plugins.skip import SkipTest - raise SkipTest() + raise unittest.SkipTest("Error encountered during test marked as @flakey.") else: raise diff --git a/test/selenium_tests/test_library_to_collections.py b/test/selenium_tests/test_library_to_collections.py index 3518cf0cd38..ef32233c14a 100644 --- a/test/selenium_tests/test_library_to_collections.py +++ b/test/selenium_tests/test_library_to_collections.py @@ -1,4 +1,4 @@ -from base.populators import flakey +import unittest from .framework import ( selenium_test, @@ -6,12 +6,12 @@ from .framework import ( ) +@unittest.skip class LibraryToCollectionsTestCase(SeleniumTestCase): requires_admin = True @selenium_test - @flakey def test_list_creation(self): self.admin_login() self.perform_upload(self.get_filename("1.bed"))