Skip to content
Snippets Groups Projects

Silences a log message in the testsuite.

Merged Adham Hashibon requested to merge silence-log into master
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
@@ -17,9 +17,10 @@ except ImportError:
@@ -17,9 +17,10 @@ except ImportError:
class TestBDSSApplication(unittest.TestCase):
class TestBDSSApplication(unittest.TestCase):
def test_initialization(self):
def test_initialization(self):
with warnings.catch_warnings():
with testfixtures.LogCapture():
warnings.simplefilter("ignore")
with warnings.catch_warnings():
app = BDSSApplication(False, "foo/bar")
warnings.simplefilter("ignore")
 
app = BDSSApplication(False, "foo/bar")
self.assertFalse(app.evaluate)
self.assertFalse(app.evaluate)
self.assertEqual(app.workflow_filepath, "foo/bar")
self.assertEqual(app.workflow_filepath, "foo/bar")
Loading