Ticket #3231: suppress-test_test_visitor-warnings.patch

File suppress-test_test_visitor-warnings.patch, 784 bytes (added by kelly, 10 years ago)

Patch to suppress the warnings.

  • suppress-test_test_visitor-warnings/twisted/trial/test/test_test_visitor.py

     
    1 from twisted.trial import unittest
     1from twisted.trial import unittest, util
    22from twisted.trial.runner import TestSuite, suiteVisit
    33
    44pyunit = __import__('unittest')
     
    1616
    1717
    1818class TestTestVisitor(unittest.TestCase):
     19
     20    suppress = [util.suppress(action='ignore', category=DeprecationWarning,
     21        message=r'Test visitors deprecated')]
     22
    1923    def setUp(self):
    2024        self.visitor = MockVisitor()
    2125