mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Replace usage of str() forcing to unicode
This commit is contained in:
parent
f0c8839c1a
commit
fe99de3c0c
@ -14,6 +14,7 @@ from tests.support.mock import (
|
||||
from salt.utils import ssdp
|
||||
import datetime
|
||||
from salt.ext.six.moves import zip
|
||||
from salt.ext.six import text_type
|
||||
|
||||
try:
|
||||
import pytest
|
||||
@ -462,7 +463,7 @@ class SSDPClientTestCase(TestCase):
|
||||
clnt._collect_masters_map(response=response)
|
||||
assert clnt.log.error.called
|
||||
assert 'Discovery master collection failure' in clnt.log.error.call_args[0][0]
|
||||
assert error_msg == str(clnt.log.error.call_args[0][1])
|
||||
assert error_msg == text_type(clnt.log.error.call_args[0][1])
|
||||
assert not response
|
||||
|
||||
def test_discover_no_masters(self):
|
||||
|
Loading…
Reference in New Issue
Block a user