test_python_application.py (1791:f841507f27f2) test_python_application.py (1804:ed698edaaf1e)
1import grp
2import os
3import pwd
4import re
5import time
6
7import pytest
8from unit.applications.lang.python import TestApplicationPython

--- 555 unchanged lines hidden (view full) ---

564 """
565
566 self.load('threading')
567
568 for _ in range(10):
569 self.get(no_recv=True)
570
571 assert (
1import grp
2import os
3import pwd
4import re
5import time
6
7import pytest
8from unit.applications.lang.python import TestApplicationPython

--- 555 unchanged lines hidden (view full) ---

564 """
565
566 self.load('threading')
567
568 for _ in range(10):
569 self.get(no_recv=True)
570
571 assert (
572 self.wait_for_record(r'\(5\) Thread: 100') is not None
572 self.wait_for_record(r'\(5\) Thread: 100', wait=50) is not None
573 ), 'last thread finished'
574
575 def test_python_application_iter_exception(self):
576 self.load('iter_exception')
577
578 # Default request doesn't lead to the exception.
579
580 resp = self.get(

--- 285 unchanged lines hidden ---
573 ), 'last thread finished'
574
575 def test_python_application_iter_exception(self):
576 self.load('iter_exception')
577
578 # Default request doesn't lead to the exception.
579
580 resp = self.get(

--- 285 unchanged lines hidden ---