~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_baz_import.py

  • Committer: Aaron Bentley
  • Date: 2006-08-24 17:02:37 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060824170237-5c5300d92f6e741e
Avoid spurious failure with RepositoryFormatKnit2 and later

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
 
18
18
from bzrlib.tests import TestCaseInTempDir, TestCase
 
19
from bzrlib import repository
19
20
from bzrlib.osutils import has_symlinks
20
21
try:
21
22
    import pybaz
721
722
                                       'c','+trunk')))
722
723
        self.failUnless(os.path.exists(os.path.join(self._tmpdir,'output', 
723
724
                                                    'c1', '0.2','branch')))
 
725
        if repository.RepositoryFormat.get_default_format().rich_root_data:
 
726
            num_files = 21
 
727
        else:
 
728
            num_files = 20
724
729
        walk_len = len(list(os.walk(os.path.join(self._tmpdir,'output'))))
725
 
        self.assertEqual(20, walk_len)
 
730
        self.assertEqual(num_files, walk_len)
726
731
 
727
732
    def test_run_twice(self):
728
733
        self.make_import('c--0')