Source: pyjunitxml
Version: 0.7-2
Severity: serious
X-Debbugs-Cc: rosesecurityresea...@proton.me

The unit tests fail with Python 3.12:

test_xml_output (junitxml.tests.test_runner.TestXMLTestRunner.test_xml_output)
Tests that runner properly gives XML output. ... FAIL

======================================================================
FAIL: test_console_output_fail 
(junitxml.tests.test_runner.TestXMLTestRunner.test_console_output_fail)
Tests that failure is reported properly on stderr.
----------------------------------------------------------------------
Traceback (most recent call last):
File ".pybuild/cpython3_3.12/build/junitxml/tests/test_runner.py", line 89, in test_console_output_fail
    self.assertTrue('Ran %d tests in ' % (num_tests,) in value,
AssertionError: False is not true : Output was:
Ran 5 tests in 0.002s

FAILED (failures=1, errors=1, skipped=1, expected failures=1, unexpected 
successes=1)


======================================================================
FAIL: test_xml_output 
(junitxml.tests.test_runner.TestXMLTestRunner.test_xml_output)
Tests that runner properly gives XML output.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".pybuild/cpython3_3.12/build/junitxml/tests/test_runner.py", line 75, 
in test_xml_output
    self.assertEqual(document.documentElement.getAttribute('tests'),
AssertionError: '5' != '6'
- 5
+ 6

Reply via email to