diff options
author | Stuart Bishop <stuart@stuartbishop.net> | 2011-02-08 17:18:52 +0700 |
---|---|---|
committer | Stuart Bishop <stuart@stuartbishop.net> | 2011-02-08 17:18:52 +0700 |
commit | ef497fc9472ca3f7f8a44f50f389cd4cffaa0391 (patch) | |
tree | d644500c5fefbc2682473aa27c3a70f4133ee24b /test_zdump.py | |
parent | 03160f6e684add68599ac270cca8d0cddc7f82d9 (diff) | |
download | pytz-ef497fc9472ca3f7f8a44f50f389cd4cffaa0391.tar.gz |
Change division operators to explicit floor division
Diffstat (limited to 'test_zdump.py')
-rw-r--r-- | test_zdump.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test_zdump.py b/test_zdump.py index c815a28..20ed8be 100644 --- a/test_zdump.py +++ b/test_zdump.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.4 +#!/usr/bin/python2.7 import os.path, sys sys.path.insert(0, os.path.join('build', 'dist')) @@ -59,13 +59,13 @@ def test_suite(): # minute, so we need to break our tests to match this limitation real_offset = loc_dt - utc_dt secs = real_offset.seconds + real_offset.days*86400 - fake_offset = timedelta(seconds=int((secs+30)/60)*60) + fake_offset = timedelta(seconds=int((secs+30)//60)*60) return utc_dt + fake_offset loc_dt = round_dt(loc_dt, utc_dt) # If the naive time on the next line is less than on this - # line, and we arn't seeing an end-of-dst transition, then + # line, and we aren't seeing an end-of-dst transition, then # we can't do our local->utc tests for either this nor the # next line since we are in an ambiguous time period (ie. # we have wound back the clock but don't have differing |