diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-11-20 16:32:28 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-11-20 16:44:14 -0500 |
| commit | 63018785db44f2be55e0838356e7600b3dc89967 (patch) | |
| tree | 2de2becd298ebbd8ae4c97baa27437f0106ec151 /tests | |
| parent | d1d89629c6a279bba6299781d2c2ded0e2f10b2e (diff) | |
| download | astroid-git-63018785db44f2be55e0838356e7600b3dc89967.tar.gz | |
Ignore DeprecationWarning from importing `nose` in test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unittest_brain.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
