Opened 14 years ago
Closed 14 years ago
#3 closed defect (fixed)
setUpClass and tearDownClass are deprecated
Reported by: | ruben | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | component1 | Version: | |
Keywords: | Cc: |
Description
Hey Zooko,
Here's a patch I needed to fix some issues running the pyutil tests.
The setUpClass and tearDownClass methods are removed in Twisted changeset 27805: http://twistedmatrix.com/trac/changeset/27805
diff -up pyutil-1.8.1/pyutil/testutil.py.orig pyutil-1.8.1/pyutil/testutil.py --- pyutil-1.8.1/pyutil/testutil.py.orig 2011-02-09 19:16:17.313999637 +0100 +++ pyutil-1.8.1/pyutil/testutil.py 2011-02-09 19:16:49.078000013 +0100 @@ -12,7 +12,7 @@ class SignalMixin(unittest.TestCase): # Twisted's twisted.test.test_process sigchldHandler = None - def setUpClass(self): + def setUp(self): # make sure SIGCHLD handler is installed, as it should be on # reactor.run(). problem is reactor may not have been run when this # test runs. @@ -20,7 +20,7 @@ class SignalMixin(unittest.TestCase): self.sigchldHandler = signal.signal(signal.SIGCHLD, reactor._handleSigchld) - def tearDownClass(self): + def tearDown(self): if self.sigchldHandler: signal.signal(signal.SIGCHLD, self.sigchldHandler)
Change History (1)
comment:1 Changed 14 years ago by zooko@…
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In [249/trunk]: