mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 17:22:56 -07:00
Update pytz to 2019.1
This commit is contained in:
parent
eea1cf1d2c
commit
e63606f195
44 changed files with 1514 additions and 738 deletions
34
lib/pytz/tests/test_docs.py
Normal file
34
lib/pytz/tests/test_docs.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
# -*- coding: ascii -*-
|
||||
|
||||
from doctest import DocFileSuite
|
||||
import unittest
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
THIS_DIR = os.path.dirname(__file__)
|
||||
|
||||
README = os.path.join(THIS_DIR, os.pardir, os.pardir, 'README.txt')
|
||||
|
||||
|
||||
class DocumentationTestCase(unittest.TestCase):
|
||||
def test_readme_encoding(self):
|
||||
'''Confirm the README.txt is pure ASCII.'''
|
||||
f = open(README, 'rb')
|
||||
try:
|
||||
f.read().decode('ASCII')
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
|
||||
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'))))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.path.insert(
|
||||
0, os.path.abspath(os.path.join(THIS_DIR, os.pardir, os.pardir))
|
||||
)
|
||||
unittest.main(defaultTest='test_suite')
|
Loading…
Add table
Add a link
Reference in a new issue