Merge pull request #45611 from terminalmage/tests-log-level

Fix unnecessary/incorrect usage of six.binary_type
This commit is contained in:
Nicole Thomas 2018-01-23 17:53:19 -05:00 committed by GitHub
commit 79ee24c0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,10 +456,7 @@ class SaltTestingParser(optparse.OptionParser):
logging_level = logging.INFO
else:
logging_level = logging.ERROR
if salt.utils.is_windows():
os.environ['TESTS_LOG_LEVEL'] = six.binary_type(self.options.verbosity)
else:
os.environ['TESTS_LOG_LEVEL'] = six.text_type(self.options.verbosity)
os.environ['TESTS_LOG_LEVEL'] = str(self.options.verbosity) # future lint: disable=blacklisted-function
consolehandler.setLevel(logging_level)
logging.root.addHandler(consolehandler)
log.info('Runtests logging has been setup')