mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Update pytz-2021.3
This commit is contained in:
parent
d76838a607
commit
9d78e6ae4c
122 changed files with 327 additions and 278 deletions
|
@ -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__':
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue