~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bad_files.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-30 13:54:37 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1898.
  • Revision ID: john@arbash-meinel.com-20060730135437-1d722abdb14bff76
(jelmer) Install new intertree tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005 by Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
18
18
"""Tests being able to ignore mad filetypes.
19
19
"""
20
20
 
 
21
from bzrlib import ignores
21
22
from bzrlib.tests import TestCaseWithTransport
22
23
from bzrlib.errors import BadFileKindError
23
24
import os
57
58
        # put some bogus stuff in the tree
58
59
 
59
60
        # We can only continue if we have mkfifo
60
 
        if getattr(os, 'mkfifo', None) is None:
 
61
        if not hasattr(os, 'mkfifo'):
61
62
            # TODO: Ultimately this should be TestSkipped
62
63
            # or PlatformDeficiency
63
64
            return
64
65
 
 
66
        # Ignore the .bazaar/ home directory that is created
 
67
        ignores._set_user_ignores(['./.bazaar'])
 
68
 
65
69
        # status with nothing
66
70
        verify_status(self, wt, [])
67
71