From c94880af2c1dc184f133b03d9fb594d3678562f8 Mon Sep 17 00:00:00 2001 From: Jonathan Kamens Date: Thu, 30 Apr 2015 15:31:21 -0400 Subject: [PATCH] TST: Suppress warnings in test_history_add_field_* tests Temporarily suppress warnings for one line of the test_history_add_field_* tests to work around #576 until it's fixed. --- tests/test_history.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_history.py b/tests/test_history.py index 36fa4f07..ecc2781d 100644 --- a/tests/test_history.py +++ b/tests/test_history.py @@ -16,6 +16,7 @@ from unittest import TestCase from itertools import product from textwrap import dedent +import warnings from nose_parameterized import parameterized import numpy as np @@ -1207,7 +1208,10 @@ class TestHistoryContainerResize(TestCase): else: self.assertNotIn(new_spec.frequency, container.digest_panels) - self.assert_history(container, new_spec, initial_dt) + with warnings.catch_warnings(): + warnings.simplefilter('ignore') + + self.assert_history(container, new_spec, initial_dt) @parameterized.expand( (bar_count, pair, field, data_frequency)