测试中的Noestests堆叠过程

时间:2020-02-19 08:56:52

标签: python-2.7 twisted nose

我有基础课:

base.py

class BaseClass(TwistedTimeoutTestCase):
   def setUp(self):
       self.process = subprocess.Popen(["bash", ...])

test.py

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

0 个答案:

没有答案