Switch to unified view

a b/NoWarnings/nowarnings.py
1
import warnings
2
from nose.plugins import Plugin
3
4
class NoWarnings(Plugin):
5
6
    def beforeTest(self, result):
7
        # Suppress warnings during tests to reduce noise
8
        warnings.simplefilter("ignore")
9
10
    def afterTest(self, result):
11
        # Clear list of warning filters
12
        warnings.resetwarnings()