Fix unit tests on Python 3.8.

This commit is contained in:
Matt Clay
2019-02-12 23:17:36 -08:00
parent 563725ba98
commit 467d2ebecd
2 changed files with 5 additions and 4 deletions

View File

@@ -261,6 +261,8 @@ class AciRest(unittest.TestCase):
error_text = to_native(u"Unable to parse output as XML, see 'raw' output. None (line 0)", errors='surrogate_or_strict')
elif PY2:
error_text = "Unable to parse output as XML, see 'raw' output. Document is empty, line 1, column 1 (line 1)"
elif sys.version_info >= (3, 8):
error_text = "Unable to parse output as XML, see 'raw' output. None (line 0)"
else:
error_text = "Unable to parse output as XML, see 'raw' output. Document is empty, line 1, column 1 (<string>, line 1)"