Bug 2095271

Summary: testsuite failures caused by expat: test_minidom, test_xml_etree_c, test_xml_etree
Product: Red Hat Enterprise Linux 8 Reporter: Lukáš Zachar <lzachar>
Component: python39Assignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: cstratak, pviktori
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python39-3.9-8070020220615144209.be1f0497 python39-3.9.13-1.module+el8.7.0+15656+ffd4a257 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:47:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukáš Zachar 2022-06-09 12:04:11 UTC
Description of problem:

Multiple tests are failing with 
`xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 5`

Related to expat backport/rebase (bug 2060435)

Version-Release number of selected component (if applicable):
expat-2.2.5-8.el8_6.2.x86_64
python39-3.9.7-1.module+el8.6.0+12577+62b8d0a1.x86_64


How reproducible:
always

Steps to Reproduce:
1. python3.9 -m test test_minidom test_xml_etree test_xml_etree_c

Actual results:
0:00:00 load avg: 0.04 Run tests sequentially
0:00:00 load avg: 0.04 [1/3] test_minidom
test test_minidom failed -- multiple errors occurred; run in verbose mode for details
0:00:00 load avg: 0.04 [2/3/1] test_xml_etree -- test_minidom failed (2 errors)
test test_xml_etree failed -- Traceback (most recent call last):
  File "/usr/lib64/python3.9/xml/etree/ElementTree.py", line 1720, in feed
    self.parser.Parse(data, False)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.9/test/test_xml_etree.py", line 2166, in test_issue3151
    e = ET.XML('<prefix:localname xmlns:prefix="${stuff}"/>')
  File "/usr/lib64/python3.9/xml/etree/ElementTree.py", line 1347, in XML
    parser.feed(text)
  File "/usr/lib64/python3.9/xml/etree/ElementTree.py", line 1722, in feed
    self._raiseerror(v)
  File "/usr/lib64/python3.9/xml/etree/ElementTree.py", line 1629, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

0:00:00 load avg: 0.04 [3/3/2] test_xml_etree_c -- test_xml_etree failed (1 error)
test test_xml_etree_c failed -- Traceback (most recent call last):
  File "/usr/lib64/python3.9/test/test_xml_etree.py", line 2166, in test_issue3151
    e = ET.XML('<prefix:localname xmlns:prefix="${stuff}"/>')
  File "/usr/lib64/python3.9/xml/etree/ElementTree.py", line 1347, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

test_xml_etree_c failed (1 error)

== Tests result: FAILURE ==

3 tests failed:
    test_minidom test_xml_etree test_xml_etree_c

3 re-run tests:
    test_minidom test_xml_etree test_xml_etree_c

Total duration: 499 ms
Tests result: FAILURE


Expected results:


Additional info:

Comment 5 errata-xmlrpc 2022-11-08 09:47:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: python39:3.9 and python39-devel:3.9 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7592