我有基础课:
class BaseClass(TwistedTimeoutTestCase):
def setUp(self):
self.process = subprocess.Popen(["bash", ...])
class MainTestCase(BaseClass):
def test_1(self):
test_something()
我用鼻子测试运行testCase: 鼻子测试test.py 当我在控制台中检查ps时,我得到了2个进程(self.process),但是我需要1
nosetests.version = 1.3.7
python.version = 2.7