Some python tests fail on current systems

Bug #1896536 reported by Hans-Peter Jansen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subunit
Fix Released
Undecided
Unassigned

Bug Description

On openSUSE Tumbelweed, these tests fail, while the succeed with older environment (Leap 15.2):

[ 5s] ======================================================================
[ 5s] FAIL: subunit.tests.test_test_protocol.TestExecTestCase.test_args
[ 5s] ----------------------------------------------------------------------
[ 5s] Traceback (most recent call last):
[ 5s] File "/home/abuild/rpmbuild/BUILD/python-subunit-1.4.0/python/subunit/tests/test_test_protocol.py", line 1062, in test_args
[ 5s] self.assertEqual(1, result.testsRun)
[ 5s] File "/usr/lib/python3.8/site-packages/unittest2/case.py", line 836, in assertEqual
[ 5s] assertion_func(first, second, msg=msg)
[ 5s] File "/usr/lib/python3.8/site-packages/unittest2/case.py", line 829, in _baseAssertEqual
[ 5s] raise self.failureException(msg)
[ 5s] AssertionError: 1 != 0
[ 5s] ======================================================================
[ 5s] FAIL: subunit.tests.test_test_protocol.TestExecTestCase.test_run
[ 5s] ----------------------------------------------------------------------
[ 5s] Traceback (most recent call last):
[ 5s] File "/home/abuild/rpmbuild/BUILD/python-subunit-1.4.0/python/subunit/tests/test_test_protocol.py", line 1075, in test_run
[ 5s] self.assertEqual([
[ 5s] File "/usr/lib/python3.8/site-packages/unittest2/case.py", line 836, in assertEqual
[ 5s] assertion_func(first, second, msg=msg)
[ 5s] File "/usr/lib/python3.8/site-packages/unittest2/case.py", line 1032, in assertListEqual
[ 5s] self.assertSequenceEqual(list1, list2, msg, seq_type=list)
[ 5s] File "/usr/lib/python3.8/site-packages/unittest2/case.py", line 1014, in assertSequenceEqual
[ 5s] self.fail(msg)
[ 5s] File "/usr/lib/python3.8/site-packages/unittest2/case.py", line 690, in fail
[ 5s] raise self.failureException(msg)
[ 5s] AssertionError: Lists differ: [('startTest', <subunit.RemotedTestCase de[666 chars]r'>)] != []

My build is available here:
https://build.opensuse.org/package/show/home:frispete:python/python-python-subunit

Revision history for this message
Hans-Peter Jansen (frispete) wrote :

This is related to Python 3.8.5, which seems to have changed this behavior.

The log isn't valid anymore, since I disabled the failing tests for now.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I believe we fixed this a while ago.

Changed in subunit:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.