mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-26 13:18:31 +08:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user