~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2007-11-30 05:42:00 UTC
  • mfrom: (3052 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3057.
  • Revision ID: andrew.bennetts@canonical.com-20071130054200-tp1k3vfbczd78cjo
Merge from bzr.dev.

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(".")