/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bad_files.py

  • Committer: Robey Pointer
  • Date: 2006-09-03 00:13:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060903001354-1f596a529c9c4934
remove usage of hasattr

Show diffs side-by-side

added added

removed removed

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