~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_strace.py

  • Committer: Martin von Gagern
  • Date: 2011-06-01 12:53:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6009.
  • Revision ID: martin.vgagern@gmx.net-20110601125356-lwozv2vecea6hxfz
Change from no_decorate to classify as name for the argument.

The command line switch remains as --no-classify, to keep backwards
compatibility.  Users are free to include --no-classify in an alias, and
still use --classify to change back.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    strace,
23
23
    tests,
24
24
    )
25
 
from bzrlib.strace import strace_detailed, StraceResult
26
 
from bzrlib.tests.features import (
27
 
    strace_feature,
28
 
    )
 
25
from bzrlib.strace import StraceFeature, strace_detailed, StraceResult
29
26
 
30
27
 
31
28
class TestStrace(tests.TestCaseWithTransport):
32
29
 
33
 
    _test_needs_features = [strace_feature]
 
30
    _test_needs_features = [StraceFeature]
34
31
 
35
32
    def setUp(self):
36
33
        # NB: see http://pad.lv/626679 and
50
47
        # restriction.
51
48
        active = threading.activeCount()
52
49
        if active > 1: # There is always the main thread at least
53
 
            self.knownFailure(
 
50
            raise tests.KnownFailure(
54
51
                '%d active threads, bug #103133 needs to be fixed.' % active)
55
52
 
56
53
    def strace_detailed_or_skip(self, *args, **kwargs):