diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py index 16f803a24..5bbd0d957 100644 --- a/src/_pytest/config/__init__.py +++ b/src/_pytest/config/__init__.py @@ -1644,7 +1644,7 @@ class Config: return value elif type == "bool": return _strtobool(str(value).strip()) - elif type is "int": + elif type == "int": return int(value) elif type == "string": return value diff --git a/src/_pytest/config/argparsing.py b/src/_pytest/config/argparsing.py index a79cf9f63..b39519e6c 100644 --- a/src/_pytest/config/argparsing.py +++ b/src/_pytest/config/argparsing.py @@ -236,7 +236,7 @@ def get_ini_default_for_type( return [] elif type == "bool": return False - elif type is "int": + elif type == "int": return 0 else: return "" diff --git a/src/_pytest/logging.py b/src/_pytest/logging.py index e9901b09c..7db4f95f2 100644 --- a/src/_pytest/logging.py +++ b/src/_pytest/logging.py @@ -850,8 +850,7 @@ class LoggingPlugin: if self.log_file_verbose: old_log_file_formatter = self.log_file_handler.formatter self.log_file_handler.setFormatter(logging.Formatter()) - - self.log_file_handler.emit(logging.LogRecord('N/A', logging.WARNING, 'N/A', 0, f"Running at {item.nodeid}", None, None)) + self.log_file_handler.emit(logging.LogRecord('N/A', logging.INFO, 'N/A', 0, f"Running at {item.nodeid}", None, None)) self.log_file_handler.setFormatter(old_log_file_formatter) self.log_cli_handler.set_when("setup")