~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2007-11-29 07:12:42 UTC
  • mto: This revision was merged to the branch mainline in revision 3048.
  • Revision ID: mbp@sourcefrog.net-20071129071242-1tcn2a18547udlvw
Fix up calls to TestCase.build_tree passing a string rather than a list

Show diffs side-by-side

added added

removed removed

Lines of Context:
2054
2054
            If the transport is readonly or None, "." is opened automatically.
2055
2055
        :return: None
2056
2056
        """
2057
 
        assert type(shape) in (list, tuple), ("Parameter 'shape' should be "
2058
 
            "a list or a tuple. Got %s instead" % type(shape))
 
2057
        if type(shape) not in (list, tuple):
 
2058
            raise AssertionError("Parameter 'shape' should be "
 
2059
                "a list or a tuple. Got %r instead" % (shape,))
2059
2060
        # It's OK to just create them using forward slashes on windows.
2060
2061
        if transport is None or transport.is_readonly():
2061
2062
            transport = get_transport(".")