From b2436560dfb4f2d45d3bf4bdfe1b2a05ff98ee38 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 5 Jan 2016 13:54:43 +0100 Subject: Alias "unicode" to "str" under Python 3 Follow-up to commit 23507e6124041ed17f39db211e802495e37520e7 The six way of doing this is to replace all occurences of "unicode" with "six.text_type". However, "unicode" is non-ambiguous and (arguably) easier to read. Also, using it makes the patches smaller, which should help with backporting. https://fedorahosted.org/freeipa/ticket/5623 Reviewed-By: Jan Cholasta Reviewed-By: Martin Basti --- ipatests/test_xmlrpc/test_certprofile_plugin.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipatests/test_xmlrpc/test_certprofile_plugin.py') diff --git a/ipatests/test_xmlrpc/test_certprofile_plugin.py b/ipatests/test_xmlrpc/test_certprofile_plugin.py index 66a72de3e..e8459772d 100644 --- a/ipatests/test_xmlrpc/test_certprofile_plugin.py +++ b/ipatests/test_xmlrpc/test_certprofile_plugin.py @@ -10,12 +10,15 @@ Test the `ipalib.plugins.certprofile` module. import os import pytest +import six from ipalib import api, errors from ipatests.util import prepare_config from ipatests.test_xmlrpc.xmlrpc_test import XMLRPC_test, raises_exact from ipatests.test_xmlrpc.tracker.certprofile_plugin import CertprofileTracker +if six.PY3: + unicode = str IPA_CERT_SUBJ_BASE = ( api.Command.config_show() -- cgit