mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 22:49:32 -02:30
basestring to six.string_types for Python 3
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import six
|
||||
|
||||
from awx.main.models import Job, JobEvent
|
||||
|
||||
from awx.main.utils.formatters import LogstashFormatter
|
||||
@@ -13,7 +15,7 @@ def test_log_from_job_event_object():
|
||||
|
||||
# Check entire body of data for any exceptions from getattr on event object
|
||||
for fd in data_for_log:
|
||||
if not isinstance(data_for_log[fd], basestring):
|
||||
if not isinstance(data_for_log[fd], six.string_types):
|
||||
continue
|
||||
assert 'Exception' not in data_for_log[fd], 'Exception delivered in data: {}'.format(data_for_log[fd])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user