/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/test_timestamp.py

  • Committer: Jelmer Vernooij
  • Date: 2018-12-18 20:55:37 UTC
  • mfrom: (7223 work)
  • mto: This revision was merged to the branch mainline in revision 7231.
  • Revision ID: jelmer@jelmer.uk-20181218205537-td8qyejigxki0xmn
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        for count in range(500):
139
139
            t += random.random() * 24 * 3600 * 30
140
140
            try:
141
 
                time.gmtime(t)
142
 
            except OverflowError:
 
141
                time.gmtime(t + o)
 
142
            except (OverflowError, ValueError):
143
143
                # We've reached the maximum for time_t on this platform
144
144
                break
145
145
            if time.localtime(t).tm_year > 9998: