~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bad_files.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-09 18:02:00 UTC
  • mfrom: (1963.2.7 bzr.dev.no_has_key)
  • Revision ID: pqm@pqm.ubuntu.com-20060909180200-96e41112dff213f3
(robey) remove hasattr and == None in favor of getattr() and is None

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        # put some bogus stuff in the tree
58
58
 
59
59
        # We can only continue if we have mkfifo
60
 
        if not hasattr(os, 'mkfifo'):
 
60
        if getattr(os, 'mkfifo', None) is None:
61
61
            # TODO: Ultimately this should be TestSkipped
62
62
            # or PlatformDeficiency
63
63
            return