/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-12-10 00:22:02 UTC
  • mfrom: (7211.2.1 timestamp-limit)
  • Revision ID: breezy.the.bot@gmail.com-20181210002202-3qofp3i0hpdpqz89
Fix timestamp bound checking in test_timestamp.

Merged from https://code.launchpad.net/~jelmer/brz/timestamp-limit/+merge/359388

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)
 
141
                time.gmtime(t + o)
142
142
            except (OverflowError, ValueError):
143
143
                # We've reached the maximum for time_t on this platform
144
144
                break