File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 33
44import logging
55import dill as pickle
6+ import pkg_resources
67import pytest
78import requests
89import time
1213
1314try :
1415 # This try/except can go away once we support pytest >= 3.3
15- import _pytest . logging
16+ pkg_resources . get_distribution ( 'pytest >= 3.3.0' )
1617 PYTEST_HAS_LOGGING_PLUGIN = True
17- except ImportError :
18+ try :
19+ # This try/except can go away once we support pytest >= 5.4.0
20+ from _pytest .logging import get_actual_log_level
21+ except ImportError :
22+ from _pytest .logging import get_log_level_for_setting as \
23+ get_actual_log_level
24+ except pkg_resources .VersionConflict :
1825 PYTEST_HAS_LOGGING_PLUGIN = False
1926
2027log = logging .getLogger (__name__ )
@@ -157,7 +164,7 @@ def pytest_configure(config):
157164 # set Pytest_Reporter and configure it
158165 if PYTEST_HAS_LOGGING_PLUGIN :
159166 # This check can go away once we support pytest >= 3.3
160- log_level = _pytest . logging . get_actual_log_level (config , 'rp_log_level' )
167+ log_level = get_actual_log_level (config , 'rp_log_level' )
161168 if log_level is None :
162169 log_level = logging .NOTSET
163170 else :
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def read_file(fname):
88 return f .read ()
99
1010
11- version = '1.10.0 '
11+ version = '1.10.1 '
1212
1313
1414requirements = [
You can’t perform that action at this time.
0 commit comments