Move the functionality for catching warnings in test_warnings.py into a separate

class to that reusing the functionality in test_structmembers.py doesn't rerun
the tests from test_warnings.py.
This commit is contained in:
Walter Dörwald 2007-04-03 16:08:10 +00:00
parent c3a35e19cc
commit d815d357b2
2 changed files with 4 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class ReadWriteTests(unittest.TestCase):
ts.T_ULONG=ULONG_MAX
self.assertEquals(ts.T_ULONG, ULONG_MAX)
class TestWarnings(test.test_warnings.TestModule):
class TestWarnings(test.test_warnings.CatchWarningTest):
def has_warned(self):
self.assertEqual(test.test_warnings.msg.category,
exceptions.RuntimeWarning.__name__)