TestUncollectedWarnings failures under pypy

Bug #926869 reported by Wouter van Heyst
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

The following tests from bzrlib.tests.test_selftest.TestUncollectedWarnings fail:

    test_additonal_decorator
    test_exclude_pattern
    test_pattern
    test_random_seed
    test_starting_with_and_exclude
    test_testsuite

The odd one out is test_matching_tests_first, which completes fine. The testoutput is a bit hard to read and pdb doesn't get me much further.

Revision history for this message
Wouter van Heyst (larstiq) wrote :
Revision history for this message
Wouter van Heyst (larstiq) wrote :

Reading some more of the code I decided to run `pypy ./bzr selftest -Euncollected_cases -s bzrlib.tests.blackbox.test_branch` as an example. None of the tests get collected, so it seems it is a more general problem with the feature not working well with pypy.

Adding -f (as suggested by test_matching_tests_first not failing) did not seem to help.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 926869] Re: TestUncollectedWarnings failures under pypy

This seems to be testing gc-dependent behaviour of tests warning if
they're not collected. The behaviour is obviously going to be
different on pypy (and other Python implementations), so I would be ok
with just making it skip if it's not cpython. gz might feel
differently.

If we suspect there is test infrastructure accumulating in memory when
running under pypy we might need to work out some other way to test
for that.

Revision history for this message
Wouter van Heyst (larstiq) wrote :

Discussion on irc with gz confirms that point of view. I'll see if there is a nice way to detect a refcounting gc and if not just skip under pypy.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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