test_python_application.py (1706:a1da56837554) test_python_application.py (1730:44912af5b3e6)
1import grp
2import pwd
3import re
4import time
5
6import pytest
7
1import grp
2import pwd
3import re
4import time
5
6import pytest
7
8from conftest import option
9from conftest import skip_alert
10from conftest import unit_stop
11from unit.applications.lang.python import TestApplicationPython
8from conftest import skip_alert
9from conftest import unit_stop
10from unit.applications.lang.python import TestApplicationPython
11from unit.option import option
12
13
14class TestPythonApplication(TestApplicationPython):
15 prerequisites = {'modules': {'python': 'all'}}
16
17 def findall(self, pattern):
18 with open(option.temp_dir + '/unit.log', 'r', errors='ignore') as f:
19 return re.findall(pattern, f.read())

--- 824 unchanged lines hidden ---
12
13
14class TestPythonApplication(TestApplicationPython):
15 prerequisites = {'modules': {'python': 'all'}}
16
17 def findall(self, pattern):
18 with open(option.temp_dir + '/unit.log', 'r', errors='ignore') as f:
19 return re.findall(pattern, f.read())

--- 824 unchanged lines hidden ---