~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-06-16 14:33:42 UTC
  • mfrom: (1770.2.1 config)
  • Revision ID: pqm@pqm.ubuntu.com-20060616143342-8f7f4a4f77c1e4c8
Use create_signature for signing policy, deprecate check_signatures for this

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
5
5
# the Free Software Foundation; either version 2 of the License, or
6
6
# (at your option) any later version.
7
 
#
 
7
 
8
8
# This program is distributed in the hope that it will be useful,
9
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
11
# GNU General Public License for more details.
12
 
#
 
12
 
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34
34
 
35
35
class TestBadFiles(TestCaseWithTransport):
36
36
    
37
 
    def test_bad_files(self):
 
37
    def test_bad_files(self): 
38
38
        """Test that bzr will ignore files it doesn't like"""
39
39
        from bzrlib.add import smart_add_tree
40
40
        from bzrlib.branch import Branch
57
57
        # put some bogus stuff in the tree
58
58
 
59
59
        # We can only continue if we have mkfifo
60
 
        if getattr(os, 'mkfifo', None) is None:
61
 
            # TODO: Ultimately this should be TestSkipped
62
 
            # or PlatformDeficiency
 
60
        if not hasattr(os, 'mkfifo'):
63
61
            return
64
62
 
65
63
        # status with nothing