소스 검색

Fix undefined name 'fail'

Mike Naberezny 11 년 전
부모
커밋
93b751fc2b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      supervisor/tests/test_process.py

+ 1 - 1
supervisor/tests/test_process.py

@@ -676,7 +676,7 @@ class SubprocessTests(unittest.TestCase):
         instance.state = ProcessStates.STOPPED
         try:
             instance.stop()
-            fail('nothing raised')
+            self.fail('nothing raised')
         except AssertionError as exc:
             self.assertEqual(exc.args[0], 'Assertion failed for test: '
                 'STOPPED not in RUNNING STARTING STOPPING')