/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/fixtures.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
def generate_unicode_names():
32
32
    """Generate a sequence of arbitrary unique unicode names.
33
 
    
 
33
 
34
34
    By default they are not representable in ascii.
35
 
    
 
35
 
36
36
    >>> gen = generate_unicode_names()
37
37
    >>> n1 = next(gen)
38
38
    >>> n2 = next(gen)
60
60
    """Return a generator of unicode encoding names.
61
61
 
62
62
    These can be passed to Python encode/decode/etc.
63
 
    
 
63
 
64
64
    :param universal_encoding: True/False/None tristate to say whether the
65
65
        generated encodings either can or cannot encode all unicode 
66
66
        strings.
92
92
 
93
93
    def __enter__(self):
94
94
        self._calls.append('__enter__')
95
 
        return self # This is bound to the 'as' clause in a with statement.
 
95
        return self  # This is bound to the 'as' clause in a with statement.
96
96
 
97
97
    def __exit__(self, exc_type, exc_val, exc_tb):
98
98
        self._calls.append('__exit__')
99
 
        return False # propogate exceptions.
 
99
        return False  # propogate exceptions.
100
100
 
101
101
 
102
102
def build_branch_with_non_ancestral_rev(branch_builder):
142
142
 
143
143
class TimeoutFixture(object):
144
144
    """Kill a test with sigalarm if it runs too long.
145
 
    
 
145
 
146
146
    Only works on Unix at present.
147
147
    """
148
148