Skip to content

Commit

Permalink
Revert "Future-proof test runner"
Browse files Browse the repository at this point in the history
This reverts commit ffa65c8.
  • Loading branch information
LaurentRDC committed Dec 2, 2020
1 parent ffa65c8 commit ebb3c76
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
3 changes: 1 addition & 2 deletions tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,5 +467,4 @@ def tearDown(self):


if __name__ == "__main__":
from utils import FutureProofTestRunner
unittest.main(testRunner=FutureProofTestRunner)
unittest.main()
10 changes: 2 additions & 8 deletions tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
import unittest
from pathlib import Path
from tempfile import gettempdir
from contextlib import redirect_stdout
import io


from iris import AbstractRawDataset, DiffractionDataset
from iris.plugins import load_plugin
Expand Down Expand Up @@ -48,11 +45,8 @@ def test_reduction(self):
class TestBrokenPlugin(unittest.TestCase):
def test_loading_broken_plugin(self):
""" Test that exceptions are caught when loading a broken plug-in. """
to_the_void = io.StringIO()
with redirect_stdout(to_the_void):
load_plugin(BROKEN_PLUGIN_PATH)
load_plugin(BROKEN_PLUGIN_PATH)


if __name__ == "__main__":
from utils import FutureProofTestRunner
unittest.main(testRunner=FutureProofTestRunner)
unittest.main()
3 changes: 1 addition & 2 deletions tests/test_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ def test_init_metadata(self):


if __name__ == "__main__":
from utils import FutureProofTestRunner
unittest.main(testRunner=FutureProofTestRunner)
unittest.main()
13 changes: 0 additions & 13 deletions tests/utils.py

This file was deleted.

0 comments on commit ebb3c76

Please sign in to comment.