~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Vincent Ladeuil
  • Date: 2011-05-31 09:39:35 UTC
  • mto: (5743.12.17 config-options)
  • mto: This revision was merged to the branch mainline in revision 5943.
  • Revision ID: v.ladeuil+lp@free.fr-20110531093935-syv7absho4lols8s
Fix use of none where neither is required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    :param server_class: The server associated with the ``transport_class``
91
91
        above.
92
92
 
93
 
    Either both or none of ``transport_class`` and ``server_class`` should be
94
 
    specified.
 
93
    Either both or neither of ``transport_class`` and ``server_class`` should
 
94
    be specified.
95
95
    """
96
96
    if transport_class is not None and server_class is not None:
97
97
        test.transport_class = transport_class
98
98
        test.transport_server = server_class
99
99
    elif not (transport_class is None and server_class is None):
100
100
        raise AssertionError('Specify both ``transport_class`` and '
101
 
                             '``server_class`` or none of them')
 
101
                             '``server_class`` or neither of them')
102
102
    if getattr(test, 'backing_branch', None) is None:
103
103
        # First call, let's build the branch on disk
104
104
        test.backing_branch = test.make_branch(relpath)