From 63018785db44f2be55e0838356e7600b3dc89967 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 20 Nov 2022 16:32:28 -0500 Subject: Ignore DeprecationWarning from importing `nose` in test --- tests/unittest_brain.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unittest_brain.py b/tests/unittest_brain.py index 3789c3bf..11dd1139 100644 --- a/tests/unittest_brain.py +++ b/tests/unittest_brain.py @@ -11,6 +11,7 @@ import queue import re import sys import unittest +import warnings from typing import Any import pytest @@ -37,8 +38,9 @@ except ImportError: try: - import nose # pylint: disable=unused-import - + with warnings.catch_warnings(): + warnings.simplefilter("ignore", DeprecationWarning) + import nose # pylint: disable=unused-import HAS_NOSE = True except ImportError: HAS_NOSE = False -- cgit v1.2.1