Update pytz-2021.3

This commit is contained in:
JonnyWong16 2021-10-14 22:35:12 -07:00
parent d76838a607
commit 9d78e6ae4c
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
122 changed files with 327 additions and 278 deletions

View file

@ -7,12 +7,12 @@ import sys
THIS_DIR = os.path.dirname(__file__)
README = os.path.join(THIS_DIR, os.pardir, os.pardir, 'README.txt')
README = os.path.join(THIS_DIR, os.pardir, os.pardir, 'README.rst')
class DocumentationTestCase(unittest.TestCase):
def test_readme_encoding(self):
'''Confirm the README.txt is pure ASCII.'''
'''Confirm the README.rst is ASCII.'''
f = open(README, 'rb')
try:
f.read().decode('ASCII')
@ -24,7 +24,7 @@ def test_suite():
"For the Z3 test runner"
return unittest.TestSuite((
DocumentationTestCase('test_readme_encoding'),
DocFileSuite(os.path.join(os.pardir, os.pardir, 'README.txt'))))
DocFileSuite(os.path.join(os.pardir, os.pardir, 'README.rst'))))
if __name__ == '__main__':

View file

@ -27,8 +27,8 @@ from pytz.tzinfo import DstTzInfo, StaticTzInfo # noqa
# I test for expected version to ensure the correct version of pytz is
# actually being tested.
EXPECTED_VERSION = '2019.3'
EXPECTED_OLSON_VERSION = '2019c'
EXPECTED_VERSION = '2021.3'
EXPECTED_OLSON_VERSION = '2021c'
fmt = '%Y-%m-%d %H:%M:%S %Z%z'
@ -859,6 +859,7 @@ def test_suite():
suite = unittest.TestSuite()
suite.addTest(doctest.DocTestSuite('pytz'))
suite.addTest(doctest.DocTestSuite('pytz.tzinfo'))
suite.addTest(doctest.DocTestSuite('pytz.exceptions'))
import test_tzinfo
suite.addTest(unittest.defaultTestLoader.loadTestsFromModule(test_tzinfo))
return suite