diff options
-rw-r--r-- | src/pytz/__init__.py | 4 | ||||
-rw-r--r-- | src/pytz/tests/test_tzinfo.py | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/pytz/__init__.py b/src/pytz/__init__.py index 28fd08d..e63b0ff 100644 --- a/src/pytz/__init__.py +++ b/src/pytz/__init__.py @@ -9,8 +9,8 @@ on how to use these modules. ''' # The Olson database is updated several times a year. -OLSON_VERSION = '2013h' -VERSION = '2013.8' # Switching to pip compatible version numbering. +OLSON_VERSION = '2013i' +VERSION = '2013.9' # Switching to pip compatible version numbering. __version__ = VERSION OLSEN_VERSION = OLSON_VERSION # Old releases had this misspelling diff --git a/src/pytz/tests/test_tzinfo.py b/src/pytz/tests/test_tzinfo.py index 2823fbe..eff0b4e 100644 --- a/src/pytz/tests/test_tzinfo.py +++ b/src/pytz/tests/test_tzinfo.py @@ -21,7 +21,8 @@ from pytz.tzinfo import DstTzInfo, StaticTzInfo # I test for expected version to ensure the correct version of pytz is # actually being tested. -EXPECTED_VERSION='2013.8' +EXPECTED_VERSION='2013.9' +EXPECTED_OLSON_VERSION='2013i' fmt = '%Y-%m-%d %H:%M:%S %Z%z' @@ -64,8 +65,12 @@ class BasicTest(unittest.TestCase): self.assertEqual(EXPECTED_VERSION, pytz.__version__, 'Incorrect pytz version loaded. Import path is stuffed ' 'or this test needs updating. (Wanted %s, got %s)' - % (EXPECTED_VERSION, pytz.__version__) - ) + % (EXPECTED_VERSION, pytz.__version__)) + + self.assertEqual(EXPECTED_OLSON_VERSION, pytz.OLSON_VERSION, + 'Incorrect pytz version loaded. Import path is stuffed ' + 'or this test needs updating. (Wanted %s, got %s)' + % (EXPECTED_VERSION, pytz.__version__)) def testGMT(self): now = datetime.now(tz=GMT) |