~mpt/apport/warmer-text

« back to all changes in this revision

Viewing changes to test/test_hookutils.py

  • Committer: Martin Pitt
  • Date: 2012-08-24 05:49:08 UTC
  • Revision ID: martin.pitt@canonical.com-20120824054908-se7e1vr7j39ebn4v
* test_hookutils.py, test_in_session_of_problem(): Use year 2038 for a future date instead of 2211, as current Python 3.2 now crashes with an OverflowError on 32 bit machines with later years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
322
322
        report = {'Date': 'Mon Oct 10 21:06:03 2009'}
323
323
        self.assertFalse(apport.hookutils.in_session_of_problem(report))
324
324
 
325
 
        report = {'Date': 'Tue Jan  1 12:00:00 2211'}
 
325
        report = {'Date': 'Tue Jan  1 12:00:00 2038'}
326
326
        self.assertTrue(apport.hookutils.in_session_of_problem(report))
327
327
 
328
328
        locale.setlocale(locale.LC_TIME, '')